//
// DialogLayer::createDialogLayer from 0x140174ae0 to 0x140174c33 (339 bytes)
//
// 43 xrefs:
// > CharacterColorPage::onMode @ 0x1400a2021
// > CreatorLayer::onMultiplayer @ 0x140137ff3
// > CreatorLayer::onSecretVault @ 0x140138ba7
// > CreatorLayer::onTreasureRoom @ 0x1401390db
// > CreatorLayer::onTreasureRoom @ 0x140139370
// > DailyLevelPage::dailyStatusFailed @ 0x140170cbd
// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8ade
// > GauntletSelectLayer::onPlay @ 0x1402ffa0b
// > GJGarageLayer::showUnlockPopup @ 0x140380b59
// > GJPathPage::showCantAffordMessage @ 0x140395948
// > GJShopLayer::showCantAffordMessage @ 0x1403b2768
// > GJShopLayer::didPurchaseItem @ 0x1403b300a
// > GJShopLayer::showReactMessage @ 0x1403b391c
// > GJShopLayer::showReactMessage @ 0x1403b480e
// > LevelAreaLayer::showDialog @ 0x1403de7ea
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0e28
// > LevelListLayer::onClaimReward @ 0x14042e3a0
// > LevelPage::onTheTower @ 0x1404457b8
// > LevelPage::onSecretDoor @ 0x14044690c
// > LevelPage::onSecretDoor @ 0x140446b93
// > OptionsLayer::onSecretVault @ 0x1404cc305
// > PlayLayer::destroyPlayer @ 0x140513438
// > SecretRewardsLayer::onSelectItem @ 0x14056beb8
// > SecretRewardsLayer::onSpecialItem @ 0x14056c72c
// > SecretRewardsLayer::onGoldChest @ 0x14056d434
// > SecretRewardsLayer::showDialog01 @ 0x14056f158
// > SecretRewardsLayer::showDialog03 @ 0x140570414
// > SecretRewardsLayer::showDialogMechanic @ 0x14057167d
// > SecretRewardsLayer::showDialogDiamond @ 0x1405722fc
// > SecretLayer2::showCompletedLevel @ 0x140579fe0
// > SecretLayer2::onSecretLevel @ 0x14057a34f
// > SecretLayer2::onDoor @ 0x14057abd1
// > SecretLayer3::firstInteractionStep2 @ 0x140581963
// > SecretLayer3::firstInteractionStep4 @ 0x140581e20
// > SecretLayer3::onClick @ 0x1405830b7
// > SecretLayer3::showUnlockDialog @ 0x1405835c7
// > SecretLayer3::revealStep2 @ 0x140583b7d
// > SecretLayer3::revealStep4 @ 0x1405842bb
// > SecretLayer3::revealStep5 @ 0x1405848d7
// > SecretLayer4::showFirstDialog @ 0x140588495
// > SecretLayer5::showFirstDialog @ 0x14058d75d
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x14063610e
// > ??> @ 0x140918410
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:27:32 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCLayerColor *__fastcall DialogLayer::createDialogLayer(__int64 a1, __int64 a2, unsigned int a3)
{
cocos2d::CCLayerColor *v6; // r14
v6 = (cocos2d::CCLayerColor *)operator new(0x288u);
cocos2d::CCLayerColor::CCLayerColor(v6);
*(_QWORD *)v6 = &DialogLayer::`vftable';
*((_QWORD *)v6 + 40) = &DialogLayer::`vftable';
*((_QWORD *)v6 + 41) = &DialogLayer::`vftable';
*((_QWORD *)v6 + 42) = &DialogLayer::`vftable';
*((_QWORD *)v6 + 43) = &DialogLayer::`vftable';
*((_QWORD *)v6 + 44) = &DialogLayer::`vftable';
*((_QWORD *)v6 + 51) = &DialogLayer::`vftable';
*((_QWORD *)v6 + 54) = &DialogLayer::`vftable';
*((_QWORD *)v6 + 68) = &DialogLayer::`vftable';
*((_QWORD *)v6 + 69) = 0;
*((_QWORD *)v6 + 71) = 0;
*((_QWORD *)v6 + 72) = 0;
*((_QWORD *)v6 + 73) = 0;
*((_QWORD *)v6 + 74) = 0;
*((_DWORD *)v6 + 150) = -1;
*((_WORD *)v6 + 308) = 0;
*((_QWORD *)v6 + 78) = 0;
*((_BYTE *)v6 + 632) = 0;
*((_DWORD *)v6 + 159) = 1;
*((_BYTE *)v6 + 640) = 0;
if ( (unsigned __int8)DialogLayer::init(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v6);
return v6;
}
else
{
(*(void (__fastcall **)(cocos2d::CCLayerColor *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);
return nullptr;
}
}