{"type": "func", "start": 5369574544, "end": 5369574877, "name": "DialogLayer::createDialogLayer", "pseudocode": "// \n// DialogLayer::createDialogLayer from 0x1400d3490 to 0x1400d35dd (333 bytes)\n// \n// 43 xrefs:\n// > CharacterColorPage::onMode @ 0x140089787\n// > CreatorLayer::onMultiplayer @ 0x14009e109\n// > CreatorLayer::onSecretVault @ 0x14009ec87\n// > CreatorLayer::onTreasureRoom @ 0x14009f1ac\n// > CreatorLayer::onTreasureRoom @ 0x14009f527\n// > DailyLevelPage::dailyStatusFailed @ 0x1400cfdc4\n// > GauntletSelectLayer::onPlay @ 0x1401fab02\n// > GJGarageLayer::showUnlockPopup @ 0x140278163\n// > GJPathPage::showCantAffordMessage @ 0x140287b3a\n// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402a0057\n// > GJShopLayer::showCantAffordMessage @ 0x1402ac39a\n// > GJShopLayer::didPurchaseItem @ 0x1402accba\n// > GJShopLayer::showReactMessage @ 0x1402ad5c2\n// > GJShopLayer::showReactMessage @ 0x1402ae47f\n// > LevelAreaLayer::showDialog @ 0x1402c54e9\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1402c7ae5\n// > LevelListLayer::onClaimReward @ 0x14030653a\n// > LevelPage::onTheTower @ 0x14031c24d\n// > LevelPage::onSecretDoor @ 0x14031d360\n// > LevelPage::onSecretDoor @ 0x14031d5ef\n// > OptionsLayer::onSecretVault @ 0x1403732fd\n// > PlayLayer::destroyPlayer @ 0x1403b450f\n// > SecretRewardsLayer::onSelectItem @ 0x1403d646f\n// > SecretRewardsLayer::onSpecialItem @ 0x1403d6cbc\n// > SecretRewardsLayer::onGoldChest @ 0x1403d797f\n// > SecretRewardsLayer::showDialog01 @ 0x1403d96bb\n// > SecretRewardsLayer::showDialog03 @ 0x1403da9a4\n// > SecretRewardsLayer::showDialogMechanic @ 0x1403dbc3a\n// > SecretRewardsLayer::showDialogDiamond @ 0x1403dc8ec\n// > SecretLayer2::showCompletedLevel @ 0x1403e442e\n// > SecretLayer2::onSecretLevel @ 0x1403e487f\n// > SecretLayer2::onDoor @ 0x1403e5150\n// > SecretLayer3::firstInteractionStep2 @ 0x1403ebd0b\n// > SecretLayer3::firstInteractionStep4 @ 0x1403ec278\n// > SecretLayer3::onClick @ 0x1403ed5ab\n// > SecretLayer3::showUnlockDialog @ 0x1403edb6e\n// > SecretLayer3::revealStep2 @ 0x1403ee124\n// > SecretLayer3::revealStep4 @ 0x1403ee923\n// > SecretLayer3::revealStep5 @ 0x1403eefed\n// > SecretLayer4::showFirstDialog @ 0x1403f2c83\n// > SecretLayer5::showFirstDialog @ 0x1403f7de4\n// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1404940e2\n// > <???> @ 0x1406c8634\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\nDialogLayer *DialogLayer::createDialogLayer(DialogObject *a1, cocos2d::CCArray *a2, int a3)\n{\n  DialogLayer *v6; // r14\n\n  v6 = (DialogLayer *)operator new(0x288u);\n  cocos2d::CCLayerColor::CCLayerColor(v6);\n  v6->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (DialogLayer_vtbl *)&DialogLayer::`vftable';\n  v6->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&DialogLayer::`vftable';\n  v6->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&DialogLayer::`vftable';\n  v6->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&DialogLayer::`vftable';\n  v6->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&DialogLayer::`vftable';\n  v6->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&DialogLayer::`vftable';\n  v6->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&DialogLayer::`vftable';\n  v6->cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&DialogLayer::`vftable';\n  v6->TextAreaDelegate::__vftable = (TextAreaDelegate_vtbl *)&DialogLayer::`vftable';\n  v6->m_animateTime = 0.0;\n  v6->m_characterLabel = nullptr;\n  v6->m_textArea = nullptr;\n  v6->m_characterSprite = nullptr;\n  v6->m_dialogObjects = nullptr;\n  v6->m_touchID = -1;\n  *(_WORD *)&v6->m_animating = 0;\n  v6->m_delegate = nullptr;\n  v6->m_handleTap = 0;\n  v6->m_animationType = FromCenter;\n  v6->m_noRemove = 0;\n  if ( DialogLayer::init(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n    return v6;\n  }\n  else\n  {\n    ((void (__fastcall *)(DialogLayer *, __int64))v6->~DialogLayer)(v6, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; DialogLayer::createDialogLayer from 0x1400d3490 to 0x1400d35dd (333 bytes)\n; \n; 43 xrefs:\n; > CharacterColorPage::onMode @ 0x140089787\n; > CreatorLayer::onMultiplayer @ 0x14009e109\n; > CreatorLayer::onSecretVault @ 0x14009ec87\n; > CreatorLayer::onTreasureRoom @ 0x14009f1ac\n; > CreatorLayer::onTreasureRoom @ 0x14009f527\n; > DailyLevelPage::dailyStatusFailed @ 0x1400cfdc4\n; > GauntletSelectLayer::onPlay @ 0x1401fab02\n; > GJGarageLayer::showUnlockPopup @ 0x140278163\n; > GJPathPage::showCantAffordMessage @ 0x140287b3a\n; > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402a0057\n; > GJShopLayer::showCantAffordMessage @ 0x1402ac39a\n; > GJShopLayer::didPurchaseItem @ 0x1402accba\n; > GJShopLayer::showReactMessage @ 0x1402ad5c2\n; > GJShopLayer::showReactMessage @ 0x1402ae47f\n; > LevelAreaLayer::showDialog @ 0x1402c54e9\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1402c7ae5\n; > LevelListLayer::onClaimReward @ 0x14030653a\n; > LevelPage::onTheTower @ 0x14031c24d\n; > LevelPage::onSecretDoor @ 0x14031d360\n; > LevelPage::onSecretDoor @ 0x14031d5ef\n; > OptionsLayer::onSecretVault @ 0x1403732fd\n; > PlayLayer::destroyPlayer @ 0x1403b450f\n; > SecretRewardsLayer::onSelectItem @ 0x1403d646f\n; > SecretRewardsLayer::onSpecialItem @ 0x1403d6cbc\n; > SecretRewardsLayer::onGoldChest @ 0x1403d797f\n; > SecretRewardsLayer::showDialog01 @ 0x1403d96bb\n; > SecretRewardsLayer::showDialog03 @ 0x1403da9a4\n; > SecretRewardsLayer::showDialogMechanic @ 0x1403dbc3a\n; > SecretRewardsLayer::showDialogDiamond @ 0x1403dc8ec\n; > SecretLayer2::showCompletedLevel @ 0x1403e442e\n; > SecretLayer2::onSecretLevel @ 0x1403e487f\n; > SecretLayer2::onDoor @ 0x1403e5150\n; > SecretLayer3::firstInteractionStep2 @ 0x1403ebd0b\n; > SecretLayer3::firstInteractionStep4 @ 0x1403ec278\n; > SecretLayer3::onClick @ 0x1403ed5ab\n; > SecretLayer3::showUnlockDialog @ 0x1403edb6e\n; > SecretLayer3::revealStep2 @ 0x1403ee124\n; > SecretLayer3::revealStep4 @ 0x1403ee923\n; > SecretLayer3::revealStep5 @ 0x1403eefed\n; > SecretLayer4::showFirstDialog @ 0x1403f2c83\n; > SecretLayer5::showFirstDialog @ 0x1403f7de4\n; > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1404940e2\n; > <???> @ 0x1406c8634\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, 0x1400d3490\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1400d3495\npush    rsi                                                            ; +0xa, 0x1400d349a\npush    rdi                                                            ; +0xb, 0x1400d349b\npush    r14                                                            ; +0xc, 0x1400d349c\nsub     rsp, 20h                                                       ; +0xe, 0x1400d349e\nmov     ebx, r8d                                                       ; +0x12, 0x1400d34a2\nmov     rdi, rdx                                                       ; +0x15, 0x1400d34a5\nmov     rsi, rcx                                                       ; +0x18, 0x1400d34a8\nmov     ecx, 288h; Size                                                ; +0x1b, 0x1400d34ab\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x20, 0x1400d34b0\nmov     r14, rax                                                       ; +0x25, 0x1400d34b5\nmov     [rsp+38h+arg_18], rax                                          ; +0x28, 0x1400d34b8\nmov     rcx, rax                                                       ; +0x2d, 0x1400d34bd\ncall    cs:??0CCLayerColor@cocos2d@@QEAA@XZ; cocos2d::CCLayerColor::CCLayerColor(void) ; +0x30, 0x1400d34c0\nlea     rax, ??_7DialogLayer@@6B@; const DialogLayer::`vftable'        ; +0x36, 0x1400d34c6\nmov     [r14], rax                                                     ; +0x3d, 0x1400d34cd\nlea     rax, ??_7DialogLayer@@6B@_0; const DialogLayer::`vftable'      ; +0x40, 0x1400d34d0\nmov     [r14+140h], rax                                                ; +0x47, 0x1400d34d7\nlea     rax, ??_7DialogLayer@@6B@_1; const DialogLayer::`vftable'      ; +0x4e, 0x1400d34de\nmov     [r14+148h], rax                                                ; +0x55, 0x1400d34e5\nlea     rax, ??_7DialogLayer@@6B@_2; const DialogLayer::`vftable'      ; +0x5c, 0x1400d34ec\nmov     [r14+150h], rax                                                ; +0x63, 0x1400d34f3\nlea     rax, ??_7DialogLayer@@6B@_3; const DialogLayer::`vftable'      ; +0x6a, 0x1400d34fa\nmov     [r14+158h], rax                                                ; +0x71, 0x1400d3501\nlea     rax, ??_7DialogLayer@@6B@_4; const DialogLayer::`vftable'      ; +0x78, 0x1400d3508\nmov     [r14+160h], rax                                                ; +0x7f, 0x1400d350f\nlea     rax, ??_7DialogLayer@@6B@_5; const DialogLayer::`vftable'      ; +0x86, 0x1400d3516\nmov     [r14+198h], rax                                                ; +0x8d, 0x1400d351d\nlea     rax, ??_7DialogLayer@@6B@_6; const DialogLayer::`vftable'      ; +0x94, 0x1400d3524\nmov     [r14+1B0h], rax                                                ; +0x9b, 0x1400d352b\nlea     rax, ??_7DialogLayer@@6B@_7; const DialogLayer::`vftable'      ; +0xa2, 0x1400d3532\nmov     [r14+220h], rax                                                ; +0xa9, 0x1400d3539\nxor     ebp, ebp                                                       ; +0xb0, 0x1400d3540\nmov     [r14+228h], ebp                                                ; +0xb2, 0x1400d3542\nmov     [r14+238h], rbp                                                ; +0xb9, 0x1400d3549\nmov     [r14+240h], rbp                                                ; +0xc0, 0x1400d3550\nmov     [r14+248h], rbp                                                ; +0xc7, 0x1400d3557\nmov     [r14+250h], rbp                                                ; +0xce, 0x1400d355e\nmov     dword ptr [r14+258h], 0FFFFFFFFh                               ; +0xd5, 0x1400d3565\nmov     [r14+268h], bp                                                 ; +0xe0, 0x1400d3570\nmov     [r14+270h], rbp                                                ; +0xe8, 0x1400d3578\nmov     [r14+278h], bpl                                                ; +0xef, 0x1400d357f\nmov     dword ptr [r14+27Ch], 1                                        ; +0xf6, 0x1400d3586\nmov     [r14+280h], bpl                                                ; +0x101, 0x1400d3591\nmov     r9d, ebx                                                       ; +0x108, 0x1400d3598\nmov     r8, rdi                                                        ; +0x10b, 0x1400d359b\nmov     rdx, rsi                                                       ; +0x10e, 0x1400d359e\nmov     rcx, r14                                                       ; +0x111, 0x1400d35a1\ncall    DialogLayer__init                                              ; +0x114, 0x1400d35a4\nmov     rcx, r14                                                       ; +0x119, 0x1400d35a9\ntest    al, al                                                         ; +0x11c, 0x1400d35ac\njz      short loc_1400D35BB                                            ; +0x11e, 0x1400d35ae\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x120, 0x1400d35b0\nmov     rax, r14                                                       ; +0x126, 0x1400d35b6\njmp     short loc_1400D35CA                                            ; +0x129, 0x1400d35b9\nmov     r8, [r14]                                                      ; +0x12b, 0x1400d35bb\nmov     edx, 1                                                         ; +0x12e, 0x1400d35be\ncall    qword ptr [r8+8]                                               ; +0x133, 0x1400d35c3\nmov     rax, rbp                                                       ; +0x137, 0x1400d35c7\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x13a, 0x1400d35ca\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x13f, 0x1400d35cf\nadd     rsp, 20h                                                       ; +0x144, 0x1400d35d4\npop     r14                                                            ; +0x148, 0x1400d35d8\npop     rdi                                                            ; +0x14a, 0x1400d35da\npop     rsi                                                            ; +0x14b, 0x1400d35db\nretn                                                                   ; +0x14c, 0x1400d35dc", "xrefs": ["CharacterColorPage::onMode @ 0x140089787", "CreatorLayer::onMultiplayer @ 0x14009e109", "CreatorLayer::onSecretVault @ 0x14009ec87", "CreatorLayer::onTreasureRoom @ 0x14009f1ac", "CreatorLayer::onTreasureRoom @ 0x14009f527", "DailyLevelPage::dailyStatusFailed @ 0x1400cfdc4", "GauntletSelectLayer::onPlay @ 0x1401fab02", "GJGarageLayer::showUnlockPopup @ 0x140278163", "GJPathPage::showCantAffordMessage @ 0x140287b3a", "GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402a0057", "GJShopLayer::showCantAffordMessage @ 0x1402ac39a", "GJShopLayer::didPurchaseItem @ 0x1402accba", "GJShopLayer::showReactMessage @ 0x1402ad5c2", "GJShopLayer::showReactMessage @ 0x1402ae47f", "LevelAreaLayer::showDialog @ 0x1402c54e9", "LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1402c7ae5", "LevelListLayer::onClaimReward @ 0x14030653a", "LevelPage::onTheTower @ 0x14031c24d", "LevelPage::onSecretDoor @ 0x14031d360", "LevelPage::onSecretDoor @ 0x14031d5ef", "OptionsLayer::onSecretVault @ 0x1403732fd", "PlayLayer::destroyPlayer @ 0x1403b450f", "SecretRewardsLayer::onSelectItem @ 0x1403d646f", "SecretRewardsLayer::onSpecialItem @ 0x1403d6cbc", "SecretRewardsLayer::onGoldChest @ 0x1403d797f", "SecretRewardsLayer::showDialog01 @ 0x1403d96bb", "SecretRewardsLayer::showDialog03 @ 0x1403da9a4", "SecretRewardsLayer::showDialogMechanic @ 0x1403dbc3a", "SecretRewardsLayer::showDialogDiamond @ 0x1403dc8ec", "SecretLayer2::showCompletedLevel @ 0x1403e442e", "SecretLayer2::onSecretLevel @ 0x1403e487f", "SecretLayer2::onDoor @ 0x1403e5150", "SecretLayer3::firstInteractionStep2 @ 0x1403ebd0b", "SecretLayer3::firstInteractionStep4 @ 0x1403ec278", "SecretLayer3::onClick @ 0x1403ed5ab", "SecretLayer3::showUnlockDialog @ 0x1403edb6e", "SecretLayer3::revealStep2 @ 0x1403ee124", "SecretLayer3::revealStep4 @ 0x1403ee923", "SecretLayer3::revealStep5 @ 0x1403eefed", "SecretLayer4::showFirstDialog @ 0x1403f2c83", "SecretLayer5::showFirstDialog @ 0x1403f7de4", "SongInfoLayer::showCustomMusicUnlockInfo @ 0x1404940e2", "<???> @ 0x1406c8634"], "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"}