{"type": "func", "start": 4798976, "end": 4799056, "name": "CreatorLayer::dialogClosed", "pseudocode": "// \n// CreatorLayer::dialogClosed from 0x493a00 to 0x493a50 (80 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CreatorLayer::dialogClosed @ 0x493a5c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:49:39 +0000\n// \n\nint __fastcall CreatorLayer::dialogClosed(CreatorLayer *this, DialogLayer *a2)\n{\n  int result; // r0\n  int v4; // r2\n  int v5; // r3\n  GameManager *v6; // r0\n  cocos2d::CCSpriteFrameCache *v7; // r0\n  int v8; // r4\n  int (__fastcall *v9)(int, int); // r5\n  cocos2d::CCSpriteFrameCache *v10; // r0\n  int v11; // r0\n\n  result = (*(int (__fastcall **)(DialogLayer *))(*(_DWORD *)a2 + 32))(a2);\n  if ( result )\n  {\n    if ( result == 1 )\n      return CreatorLayer::onAdventureMap(this, nullptr, v4, v5);\n  }\n  else\n  {\n    v6 = (GameManager *)GameManager::sharedState(nullptr);\n    v7 = (cocos2d::CCSpriteFrameCache *)GameManager::setUGV(v6, (char *)&a1i2r3e45s789g[7], (_BYTE *)&dword_0 + 1);\n    v8 = *((_DWORD *)this + 82);\n    v9 = *(int (__fastcall **)(int, int))(*(_DWORD *)v8 + 580);\n    v10 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v7);\n    v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, \"secretDoorBtn_open_001.png\");\n    return v9(v8, v11);\n  }\n  return result;\n}", "assembly": "; \n; CreatorLayer::dialogClosed from 0x493a00 to 0x493a50 (80 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CreatorLayer::dialogClosed @ 0x493a5c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:49:39 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x493a00\nMOV             R4, R0                                                 ; +0x2, 0x493a02\nLDR             R3, [R1]                                               ; +0x4, 0x493a04\nMOV             R0, R1                                                 ; +0x6, 0x493a06\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x493a08\nBLX             R3                                                     ; +0xa, 0x493a0a\nCBZ             R0, loc_493A14                                         ; +0xc, 0x493a0c\nCMP             R0, #1                                                 ; +0xe, 0x493a0e\nBEQ             loc_493A44                                             ; +0x10, 0x493a10\nPOP             {R4-R6,PC}                                             ; +0x12, 0x493a12\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14, 0x493a14\nLDR             R1, =(a1i2r3e45s789g+0xE - 0x493A20); \"5s789g\"         ; +0x18, 0x493a18\nMOVS            R2, #1; bool                                           ; +0x1a, 0x493a1a\nADD             R1, PC; \"5s789g\" ; char *                              ; +0x1c, 0x493a1c\nBL              _ZN11GameManager6setUGVEPKcb; GameManager::setUGV(char const*,bool) ; +0x1e, 0x493a1e\nLDR.W           R4, [R4,#0x148]                                        ; +0x22, 0x493a22\nLDR             R3, [R4]                                               ; +0x26, 0x493a26\nLDR.W           R5, [R3,#0x244]                                        ; +0x28, 0x493a28\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x2c, 0x493a2c\nLDR             R1, =(aSecretdoorbtnO - 0x493A36); \"secretDoorBtn_open_001.png\" ; +0x30, 0x493a30\nADD             R1, PC; \"secretDoorBtn_open_001.png\"                   ; +0x32, 0x493a32\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0x34, 0x493a34\nMOV             R3, R5                                                 ; +0x38, 0x493a38\nMOV             R1, R0                                                 ; +0x3a, 0x493a3a\nMOV             R0, R4                                                 ; +0x3c, 0x493a3c\nPOP.W           {R4-R6,LR}                                             ; +0x3e, 0x493a3e\nBX              R3                                                     ; +0x42, 0x493a42\nMOV             R0, R4; this                                           ; +0x44, 0x493a44\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x46, 0x493a46\nPOP.W           {R4-R6,LR}                                             ; +0x48, 0x493a48\nB.W             _ZN12CreatorLayer14onAdventureMapEPN7cocos2d8CCObjectE; CreatorLayer::onAdventureMap(cocos2d::CCObject *) ; +0x4c, 0x493a4c", "xrefs": ["`non-virtual thunk to'CreatorLayer::dialogClosed @ 0x493a5c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}