{"type": "func", "start": 5369362240, "end": 5369362426, "name": "CreatorLayer::dialogClosed", "pseudocode": "// \n// CreatorLayer::dialogClosed from 0x14009f740 to 0x14009f7fa (186 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405437b0\n// > <???> @ 0x1406c7650\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\n// Hidden C++ exception states: #wind=1\nvoid CreatorLayer::dialogClosed(CreatorLayer *a1, DialogLayer *a2)\n{\n  int v3; // eax\n  GameManager *v4; // rcx\n  __int64 v5; // rbx\n  cocos2d::CCSpriteFrameCache *v6; // rax\n  struct cocos2d::CCSpriteFrame *v7; // rax\n  void *v8; // [rsp+38h] [rbp+10h]\n\n  v3 = a2->getTag(a2);\n  if ( v3 )\n  {\n    if ( v3 == 1 )\n      CreatorLayer::onAdventureMap((CreatorLayer *)((char *)a1 - 416), nullptr);\n  }\n  else\n  {\n    v4 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v8 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v4 = (GameManager *)qword_1406C2ED8;\n    }\n    GameManager::setUGV(v4, (const char *)&word_140531E90, 1);\n    v5 = **(_QWORD **)&a1->m_uID;\n    v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, \"secretDoorBtn_open_001.png\");\n    (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(v5 + 992))(*(_QWORD *)&a1->m_uID, v7);\n  }\n}", "assembly": "; \n; CreatorLayer::dialogClosed from 0x14009f740 to 0x14009f7fa (186 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405437b0\n; > <???> @ 0x1406c7650\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14009f740\npush    rdi                                                            ; +0x5, 0x14009f745\nsub     rsp, 20h                                                       ; +0x6, 0x14009f746\nmov     rdi, rcx                                                       ; +0xa, 0x14009f74a\nmov     rax, [rdx]                                                     ; +0xd, 0x14009f74d\nmov     rcx, rdx                                                       ; +0x10, 0x14009f750\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x14009f753\ntest    eax, eax                                                       ; +0x16, 0x14009f756\njz      short loc_14009F77B                                            ; +0x18, 0x14009f758\ncmp     eax, 1                                                         ; +0x1a, 0x14009f75a\njnz     loc_14009F7EF                                                  ; +0x1d, 0x14009f75d\nlea     rcx, [rdi-1A0h]                                                ; +0x23, 0x14009f763\nxor     edx, edx                                                       ; +0x2a, 0x14009f76a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x2c, 0x14009f76c\nadd     rsp, 20h                                                       ; +0x31, 0x14009f771\npop     rdi                                                            ; +0x35, 0x14009f775\njmp     CreatorLayer__onAdventureMap                                   ; +0x36, 0x14009f776\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3b, 0x14009f77b\ntest    rcx, rcx                                                       ; +0x42, 0x14009f782\njnz     short loc_14009F7B6                                            ; +0x45, 0x14009f785\nmov     ecx, 668h; Size                                                ; +0x47, 0x14009f787\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4c, 0x14009f78c\nmov     [rsp+28h+arg_8], rax                                           ; +0x51, 0x14009f791\nmov     rcx, rax                                                       ; +0x56, 0x14009f796\ncall    sub_14017AB00                                                  ; +0x59, 0x14009f799\nnop                                                                    ; +0x5e, 0x14009f79e\nmov     cs:qword_1406C2ED8, rax                                        ; +0x5f, 0x14009f79f\nmov     rdx, [rax]                                                     ; +0x66, 0x14009f7a6\nmov     rcx, rax                                                       ; +0x69, 0x14009f7a9\ncall    qword ptr [rdx+48h]                                            ; +0x6c, 0x14009f7ac\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x6f, 0x14009f7af\nmov     r8b, 1                                                         ; +0x76, 0x14009f7b6\nlea     rdx, word_140531E90                                            ; +0x79, 0x14009f7b9\ncall    GameManager__setUGV                                            ; +0x80, 0x14009f7c0\nmov     rax, [rdi+8]                                                   ; +0x85, 0x14009f7c5\nmov     rbx, [rax]                                                     ; +0x89, 0x14009f7c9\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x8c, 0x14009f7cc\nmov     rcx, rax                                                       ; +0x92, 0x14009f7d2\nlea     rdx, aSecretdoorbtnO; \"secretDoorBtn_open_001.png\"             ; +0x95, 0x14009f7d5\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x9c, 0x14009f7dc\nmov     rdx, rax                                                       ; +0xa2, 0x14009f7e2\nmov     rcx, [rdi+8]                                                   ; +0xa5, 0x14009f7e5\ncall    qword ptr [rbx+3E0h]                                           ; +0xa9, 0x14009f7e9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xaf, 0x14009f7ef\nadd     rsp, 20h                                                       ; +0xb4, 0x14009f7f4\npop     rdi                                                            ; +0xb8, 0x14009f7f8\nretn                                                                   ; +0xb9, 0x14009f7f9", "xrefs": ["<???> @ 0x1405437b0", "<???> @ 0x1406c7650"], "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"}