//
// DialogObject::create from 0x140174920 to 0x140174ad4 (436 bytes)
//
// 188 xrefs:
// > CharacterColorPage::onMode @ 0x1400a2011
// > CreatorLayer::onMultiplayer @ 0x140137fe3
// > CreatorLayer::onSecretVault @ 0x140138b97
// > CreatorLayer::onTreasureRoom @ 0x140138ec1
// > CreatorLayer::onTreasureRoom @ 0x140138fc2
// > CreatorLayer::onTreasureRoom @ 0x1401390bf
// > CreatorLayer::onTreasureRoom @ 0x140139360
// > DailyLevelPage::dailyStatusFailed @ 0x140170cad
// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402c8ad0
// > GauntletSelectLayer::onPlay @ 0x1402ff80d
// > GauntletSelectLayer::onPlay @ 0x1402ff903
// > GauntletSelectLayer::onPlay @ 0x1402ff9ef
// > GJGarageLayer::showUnlockPopup @ 0x1403806fc
// > GJGarageLayer::showUnlockPopup @ 0x1403807d9
// > GJGarageLayer::showUnlockPopup @ 0x1403808b9
// > GJGarageLayer::showUnlockPopup @ 0x14038098e
// > GJGarageLayer::showUnlockPopup @ 0x140380a6b
// > GJGarageLayer::showUnlockPopup @ 0x140380b3d
// > GJPathPage::showCantAffordMessage @ 0x140395938
// > GJShopLayer::showCantAffordMessage @ 0x1403b2758
// > GJShopLayer::didPurchaseItem @ 0x1403b2c5f
// > GJShopLayer::didPurchaseItem @ 0x1403b2d4a
// > GJShopLayer::didPurchaseItem @ 0x1403b2e38
// > GJShopLayer::didPurchaseItem @ 0x1403b2f1c
// > GJShopLayer::didPurchaseItem @ 0x1403b2fee
// > GJShopLayer::showReactMessage @ 0x1403b352e
// > GJShopLayer::showReactMessage @ 0x1403b3621
// > GJShopLayer::showReactMessage @ 0x1403b372a
// > GJShopLayer::showReactMessage @ 0x1403b3802
// > GJShopLayer::showReactMessage @ 0x1403b3903
// > GJShopLayer::showReactMessage @ 0x1403b3d8d
// > GJShopLayer::showReactMessage @ 0x1403b3e67
// > GJShopLayer::showReactMessage @ 0x1403b3f59
// > GJShopLayer::showReactMessage @ 0x1403b41c9
// > GJShopLayer::showReactMessage @ 0x1403b42a5
// > GJShopLayer::showReactMessage @ 0x1403b4534
// > GJShopLayer::showReactMessage @ 0x1403b4627
// > GJShopLayer::showReactMessage @ 0x1403b47ff
// > LevelAreaLayer::showDialog @ 0x1403de6cf
// > LevelAreaLayer::showDialog @ 0x1403de7ce
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0a69
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0b56
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0c50
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0d49
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1403e0e0c
// > LevelListLayer::onClaimReward @ 0x14042e390
// > LevelPage::onTheTower @ 0x140445389
// > LevelPage::onTheTower @ 0x140445482
// > LevelPage::onTheTower @ 0x140445554
// > LevelPage::onTheTower @ 0x140445659
// > LevelPage::onTheTower @ 0x14044574f
// > LevelPage::onSecretDoor @ 0x140446713
// > LevelPage::onSecretDoor @ 0x140446807
// > LevelPage::onSecretDoor @ 0x1404468f0
// > LevelPage::onSecretDoor @ 0x1404469d0
// > LevelPage::onSecretDoor @ 0x140446ab8
// > LevelPage::onSecretDoor @ 0x140446b77
// > OptionsLayer::onSecretVault @ 0x1404cc2f5
// > PlayLayer::destroyPlayer @ 0x14051342b
// > SecretRewardsLayer::onSelectItem @ 0x14056bea8
// > SecretRewardsLayer::onSpecialItem @ 0x14056c710
// > SecretRewardsLayer::onGoldChest @ 0x14056d424
// > SecretRewardsLayer::showDialog01 @ 0x14056dae3
// > SecretRewardsLayer::showDialog01 @ 0x14056dbd9
// > SecretRewardsLayer::showDialog01 @ 0x14056dcb9
// > SecretRewardsLayer::showDialog01 @ 0x14056dd8b
// > SecretRewardsLayer::showDialog01 @ 0x14056de95
// > SecretRewardsLayer::showDialog01 @ 0x14056df81
// > SecretRewardsLayer::showDialog01 @ 0x14056e117
// > SecretRewardsLayer::showDialog01 @ 0x14056e1ec
// > SecretRewardsLayer::showDialog01 @ 0x14056e39c
// > SecretRewardsLayer::showDialog01 @ 0x14056e473
// > SecretRewardsLayer::showDialog01 @ 0x14056e553
// > SecretRewardsLayer::showDialog01 @ 0x14056e61f
// > SecretRewardsLayer::showDialog01 @ 0x14056e7d9
// > SecretRewardsLayer::showDialog01 @ 0x14056e8b9
// > SecretRewardsLayer::showDialog01 @ 0x14056e999
// > SecretRewardsLayer::showDialog01 @ 0x14056eae4
// > SecretRewardsLayer::showDialog01 @ 0x14056ebaf
// > SecretRewardsLayer::showDialog01 @ 0x14056ec90
// > SecretRewardsLayer::showDialog01 @ 0x14056ed72
// > SecretRewardsLayer::showDialog01 @ 0x14056ee44
// > SecretRewardsLayer::showDialog01 @ 0x14056ef69
// > SecretRewardsLayer::showDialog01 @ 0x14056f052
// > SecretRewardsLayer::showDialog01 @ 0x14056f124
// > SecretRewardsLayer::showDialog03 @ 0x14056f3c2
// > SecretRewardsLayer::showDialog03 @ 0x14056f4c5
// > SecretRewardsLayer::showDialog03 @ 0x14056f584
// > SecretRewardsLayer::showDialog03 @ 0x14056f64b
// > SecretRewardsLayer::showDialog03 @ 0x14056f74f
// > SecretRewardsLayer::showDialog03 @ 0x14056f847
// > SecretRewardsLayer::showDialog03 @ 0x14056f9bc
// > SecretRewardsLayer::showDialog03 @ 0x14056fa7d
// > SecretRewardsLayer::showDialog03 @ 0x14056fb47
// > SecretRewardsLayer::showDialog03 @ 0x14056fc8e
// > SecretRewardsLayer::showDialog03 @ 0x14056fd8c
// > SecretRewardsLayer::showDialog03 @ 0x14056fe7d
// > SecretRewardsLayer::showDialog03 @ 0x14057000a
// > SecretRewardsLayer::showDialog03 @ 0x1405700ed
// > SecretRewardsLayer::showDialog03 @ 0x14057023e
// > SecretRewardsLayer::showDialog03 @ 0x140570316
// > SecretRewardsLayer::showDialog03 @ 0x1405703e3
// > SecretRewardsLayer::showDialogMechanic @ 0x140570674
// > SecretRewardsLayer::showDialogMechanic @ 0x14057074d
// > SecretRewardsLayer::showDialogMechanic @ 0x14057083c
// > SecretRewardsLayer::showDialogMechanic @ 0x140570914
// > SecretRewardsLayer::showDialogMechanic @ 0x140570a03
// > SecretRewardsLayer::showDialogMechanic @ 0x140570b23
// > SecretRewardsLayer::showDialogMechanic @ 0x140570bed
// > SecretRewardsLayer::showDialogMechanic @ 0x140570cbe
// > SecretRewardsLayer::showDialogMechanic @ 0x140570e91
// > SecretRewardsLayer::showDialogMechanic @ 0x140570f57
// > SecretRewardsLayer::showDialogMechanic @ 0x14057103c
// > SecretRewardsLayer::showDialogMechanic @ 0x14057117c
// > SecretRewardsLayer::showDialogMechanic @ 0x140571319
// > SecretRewardsLayer::showDialogMechanic @ 0x1405713dd
// > SecretRewardsLayer::showDialogMechanic @ 0x140571563
// > SecretRewardsLayer::showDialogMechanic @ 0x14057164c
// > SecretRewardsLayer::showDialogDiamond @ 0x1405718f8
// > SecretRewardsLayer::showDialogDiamond @ 0x1405719db
// > SecretRewardsLayer::showDialogDiamond @ 0x140571ac6
// > SecretRewardsLayer::showDialogDiamond @ 0x140571be0
// > SecretRewardsLayer::showDialogDiamond @ 0x140571dc5
// > SecretRewardsLayer::showDialogDiamond @ 0x140571ea0
// > SecretRewardsLayer::showDialogDiamond @ 0x14057200b
// > SecretRewardsLayer::showDialogDiamond @ 0x1405721dc
// > SecretRewardsLayer::showDialogDiamond @ 0x1405722cb
// > SecretLayer2::showCompletedLevel @ 0x1405795a7
// > SecretLayer2::showCompletedLevel @ 0x14057967e
// > SecretLayer2::showCompletedLevel @ 0x140579778
// > SecretLayer2::showCompletedLevel @ 0x140579867
// > SecretLayer2::showCompletedLevel @ 0x140579956
// > SecretLayer2::showCompletedLevel @ 0x140579a39
// > SecretLayer2::showCompletedLevel @ 0x140579b27
// > SecretLayer2::showCompletedLevel @ 0x140579be0
// > SecretLayer2::showCompletedLevel @ 0x140579cc1
// > SecretLayer2::showCompletedLevel @ 0x140579da1
// > SecretLayer2::showCompletedLevel @ 0x140579e9d
// > SecretLayer2::showCompletedLevel @ 0x140579fc4
// > SecretLayer2::onSecretLevel @ 0x14057a33f
// > SecretLayer2::onDoor @ 0x14057abc1
// > SecretLayer3::firstInteractionStep2 @ 0x140581677
// > SecretLayer3::firstInteractionStep2 @ 0x140581773
// > SecretLayer3::firstInteractionStep2 @ 0x140581861
// > SecretLayer3::firstInteractionStep2 @ 0x140581947
// > SecretLayer3::firstInteractionStep4 @ 0x140581b25
// > SecretLayer3::firstInteractionStep4 @ 0x140581c0f
// > SecretLayer3::firstInteractionStep4 @ 0x140581cf9
// > SecretLayer3::firstInteractionStep4 @ 0x140581e04
// > SecretLayer3::onClick @ 0x1405820d1
// > SecretLayer3::onClick @ 0x1405821b2
// > SecretLayer3::onClick @ 0x1405822b8
// > SecretLayer3::onClick @ 0x140582471
// > SecretLayer3::onClick @ 0x140582547
// > SecretLayer3::onClick @ 0x14058262c
// > SecretLayer3::onClick @ 0x1405827e9
// > SecretLayer3::onClick @ 0x1405828fe
// > SecretLayer3::onClick @ 0x1405829e4
// > SecretLayer3::onClick @ 0x140582ad2
// > SecretLayer3::onClick @ 0x140582bc5
// > SecretLayer3::showUnlockDialog @ 0x140583366
// > SecretLayer3::showUnlockDialog @ 0x1405834c3
// > SecretLayer3::showUnlockDialog @ 0x1405835ab
// > SecretLayer3::revealStep2 @ 0x140583976
// > SecretLayer3::revealStep2 @ 0x140583a5f
// > SecretLayer3::revealStep2 @ 0x140583b61
// > SecretLayer3::revealStep4 @ 0x140583d77
// > SecretLayer3::revealStep4 @ 0x140583e64
// > SecretLayer3::revealStep4 @ 0x140583fc9
// > SecretLayer3::revealStep4 @ 0x1405840cc
// > SecretLayer3::revealStep4 @ 0x1405841b5
// > SecretLayer3::revealStep4 @ 0x14058429f
// > SecretLayer3::revealStep5 @ 0x1405844e2
// > SecretLayer3::revealStep5 @ 0x1405845d4
// > SecretLayer3::revealStep5 @ 0x1405846cf
// > SecretLayer3::revealStep5 @ 0x1405847c0
// > SecretLayer3::revealStep5 @ 0x1405848bb
// > SecretLayer4::showFirstDialog @ 0x1405881b5
// > SecretLayer4::showFirstDialog @ 0x1405882a2
// > SecretLayer4::showFirstDialog @ 0x140588382
// > SecretLayer4::showFirstDialog @ 0x140588479
// > SecretLayer5::showFirstDialog @ 0x14058d33c
// > SecretLayer5::showFirstDialog @ 0x14058d451
// > SecretLayer5::showFirstDialog @ 0x14058d566
// > SecretLayer5::showFirstDialog @ 0x14058d64f
// > SecretLayer5::showFirstDialog @ 0x14058d741
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1406360fe
// > ??> @ 0x140918404
//
// 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=6
void **__fastcall DialogObject::create(__int64 a1, __int64 a2, int a3, float a4, char a5, __int64 a6)
{
void **v9; // rbx
void **v10; // rdi
__int64 v11; // rax
__int64 v12; // rsi
void *v13; // rdx
void *v14; // rdx
_BYTE v16[32]; // [rsp+30h] [rbp-A8h] BYREF
_BYTE v17[32]; // [rsp+50h] [rbp-88h] BYREF
__int64 v18; // [rsp+70h] [rbp-68h]
__int64 v19; // [rsp+78h] [rbp-60h]
v18 = a1;
v19 = a2;
v9 = (void **)operator new(0x88u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v9);
*v9 = &DialogObject::`vftable';
*(_OWORD *)(v9 + 7) = 0;
v9[9] = nullptr;
v9[10] = (void *)15;
*((_BYTE *)v9 + 56) = 0;
*(_OWORD *)(v9 + 11) = 0;
v9[13] = nullptr;
v9[14] = (void *)15;
*((_BYTE *)v9 + 88) = 0;
*((_DWORD *)v9 + 30) = 0;
*((_DWORD *)v9 + 32) = 1065353216;
*((_BYTE *)v9 + 132) = 0;
v10 = (void **)sub_14003F4F0((__int64)v16, a2);
v11 = sub_14003F4F0((__int64)v17, a1);
v12 = v11;
if ( v9 + 11 != (void **)v11 )
{
v13 = (void *)v11;
if ( *(_QWORD *)(v11 + 24) > 0xFu )
v13 = *(void **)v11;
sub_1400405A0(v9 + 11, v13, *(_QWORD *)(v11 + 16));
}
if ( v9 + 7 != v10 )
{
v14 = v10;
if ( (unsigned __int64)v10[3] > 0xF )
v14 = *v10;
sub_1400405A0(v9 + 7, v14, (size_t)v10[2]);
}
*((_DWORD *)v9 + 30) = a3;
*((float *)v9 + 32) = a4;
*((_WORD *)v9 + 62) = *(_WORD *)a6;
*((_BYTE *)v9 + 126) = *(_BYTE *)(a6 + 2);
*((_BYTE *)v9 + 132) = a5;
sub_14003D310(v12);
sub_14003D310((__int64)v10);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
sub_14003D310(a1);
sub_14003D310(a2);
return v9;
}