{"type": "func", "start": 4295870176, "end": 4295870312, "name": "CreatorLayer::dialogClosed", "pseudocode": "// \n// CreatorLayer::dialogClosed from 0x1000dc6e0 to 0x1000dc768 (136 bytes)\n// \n// 2 xrefs:\n// > sub_1000DC768 @ 0x1000dc76c\n// > <???> @ 0x1008cf6d0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:58:59 +0000\n// \n\n__int64 __fastcall CreatorLayer::dialogClosed(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n  __int64 v4; // x0\n  __int64 v5; // x0\n  __int64 v6; // x19\n  __int64 v7; // x0\n  __int64 v8; // x1\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( (_DWORD)result == 1 )\n    return CreatorLayer::onAdventureMap();\n  if ( !(_DWORD)result )\n  {\n    v4 = GameManager::sharedState(result);\n    v5 = GameManager::setUGV(v4, \"5\", 1);\n    v6 = *(_QWORD *)(a1 + 432);\n    v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v5);\n    v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, \"secretDoorBtn_open_001.png\");\n    return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1160LL))(v6, v8);\n  }\n  return result;\n}", "assembly": "; \n; CreatorLayer::dialogClosed from 0x1000dc6e0 to 0x1000dc768 (136 bytes)\n; \n; 2 xrefs:\n; > sub_1000DC768 @ 0x1000dc76c\n; > <???> @ 0x1008cf6d0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 10:58:59 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000dc6e0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000dc6e4\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000dc6e8\nMOV             X19, X0                                                ; +0xc, 0x1000dc6ec\nLDR             X8, [X1]                                               ; +0x10, 0x1000dc6f0\nLDR             X8, [X8,#0x40]                                         ; +0x14, 0x1000dc6f4\nMOV             X0, X1                                                 ; +0x18, 0x1000dc6f8\nBLR             X8                                                     ; +0x1c, 0x1000dc6fc\nCMP             W0, #1                                                 ; +0x20, 0x1000dc700\nB.EQ            loc_1000DC750                                          ; +0x24, 0x1000dc704\nCBNZ            W0, loc_1000DC75C                                      ; +0x28, 0x1000dc708\nBL              GameManager__sharedState                               ; +0x2c, 0x1000dc70c\nADRL            X1, a5; \"5\"                                            ; +0x30, 0x1000dc710\nMOV             W2, #1                                                 ; +0x38, 0x1000dc718\nBL              GameManager__setUGV                                    ; +0x3c, 0x1000dc71c\nLDR             X19, [X19,#0x1B0]                                      ; +0x40, 0x1000dc720\nBL              cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache    ; +0x44, 0x1000dc724\nADRL            X1, aSecretdoorbtnO; \"secretDoorBtn_open_001.png\"      ; +0x48, 0x1000dc728\nBL              cocos2d__CCSpriteFrameCache__spriteFrameByName         ; +0x50, 0x1000dc730\nMOV             X1, X0                                                 ; +0x54, 0x1000dc734\nLDR             X8, [X19]                                              ; +0x58, 0x1000dc738\nLDR             X2, [X8,#0x488]                                        ; +0x5c, 0x1000dc73c\nMOV             X0, X19                                                ; +0x60, 0x1000dc740\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x64, 0x1000dc744\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x68, 0x1000dc748\nBR              X2                                                     ; +0x6c, 0x1000dc74c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x70, 0x1000dc750\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x74, 0x1000dc754\nB               CreatorLayer__onAdventureMap                           ; +0x78, 0x1000dc758\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x7c, 0x1000dc75c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x80, 0x1000dc760\nRET                                                                    ; +0x84, 0x1000dc764", "xrefs": ["sub_1000DC768 @ 0x1000dc76c", "<???> @ 0x1008cf6d0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}