//
// DialogObject::create from 0x1400d32d0 to 0x1400d3484 (436 bytes)
//
// 188 xrefs:
// > CharacterColorPage::onMode @ 0x140089779
// > CreatorLayer::onMultiplayer @ 0x14009e0fb
// > CreatorLayer::onSecretVault @ 0x14009ec79
// > CreatorLayer::onTreasureRoom @ 0x14009ef98
// > CreatorLayer::onTreasureRoom @ 0x14009f098
// > CreatorLayer::onTreasureRoom @ 0x14009f191
// > CreatorLayer::onTreasureRoom @ 0x14009f519
// > DailyLevelPage::dailyStatusFailed @ 0x1400cfdb6
// > GauntletSelectLayer::onPlay @ 0x1401fa904
// > GauntletSelectLayer::onPlay @ 0x1401fa9fb
// > GauntletSelectLayer::onPlay @ 0x1401faae8
// > GJGarageLayer::showUnlockPopup @ 0x140277cfd
// > GJGarageLayer::showUnlockPopup @ 0x140277ddb
// > GJGarageLayer::showUnlockPopup @ 0x140277ebf
// > GJGarageLayer::showUnlockPopup @ 0x140277f95
// > GJGarageLayer::showUnlockPopup @ 0x140278076
// > GJGarageLayer::showUnlockPopup @ 0x140278149
// > GJPathPage::showCantAffordMessage @ 0x140287b2c
// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1402a0048
// > GJShopLayer::showCantAffordMessage @ 0x1402ac38c
// > GJShopLayer::didPurchaseItem @ 0x1402ac8ff
// > GJShopLayer::didPurchaseItem @ 0x1402ac9ee
// > GJShopLayer::didPurchaseItem @ 0x1402acae0
// > GJShopLayer::didPurchaseItem @ 0x1402acbc8
// > GJShopLayer::didPurchaseItem @ 0x1402acc9e
// > GJShopLayer::showReactMessage @ 0x1402ad1ce
// > GJShopLayer::showReactMessage @ 0x1402ad2c3
// > GJShopLayer::showReactMessage @ 0x1402ad3ce
// > GJShopLayer::showReactMessage @ 0x1402ad4a8
// > GJShopLayer::showReactMessage @ 0x1402ad5a9
// > GJShopLayer::showReactMessage @ 0x1402ada1c
// > GJShopLayer::showReactMessage @ 0x1402adaf8
// > GJShopLayer::showReactMessage @ 0x1402adbec
// > GJShopLayer::showReactMessage @ 0x1402ade5b
// > GJShopLayer::showReactMessage @ 0x1402adf3e
// > GJShopLayer::showReactMessage @ 0x1402ae1c6
// > GJShopLayer::showReactMessage @ 0x1402ae2c0
// > GJShopLayer::showReactMessage @ 0x1402ae470
// > LevelAreaLayer::showDialog @ 0x1402c53cf
// > LevelAreaLayer::showDialog @ 0x1402c54cf
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1402c7727
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1402c7815
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1402c7910
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1402c7a0a
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1402c7acb
// > LevelListLayer::onClaimReward @ 0x14030652c
// > LevelPage::onTheTower @ 0x14031be21
// > LevelPage::onTheTower @ 0x14031bf1a
// > LevelPage::onTheTower @ 0x14031bfec
// > LevelPage::onTheTower @ 0x14031c0f1
// > LevelPage::onTheTower @ 0x14031c1e7
// > LevelPage::onSecretDoor @ 0x14031d169
// > LevelPage::onSecretDoor @ 0x14031d25d
// > LevelPage::onSecretDoor @ 0x14031d346
// > LevelPage::onSecretDoor @ 0x14031d424
// > LevelPage::onSecretDoor @ 0x14031d510
// > LevelPage::onSecretDoor @ 0x14031d5d3
// > OptionsLayer::onSecretVault @ 0x1403732ef
// > PlayLayer::destroyPlayer @ 0x1403b4502
// > SecretRewardsLayer::onSelectItem @ 0x1403d6461
// > SecretRewardsLayer::onSpecialItem @ 0x1403d6ca0
// > SecretRewardsLayer::onGoldChest @ 0x1403d7971
// > SecretRewardsLayer::showDialog01 @ 0x1403d7ffd
// > SecretRewardsLayer::showDialog01 @ 0x1403d80f3
// > SecretRewardsLayer::showDialog01 @ 0x1403d81d3
// > SecretRewardsLayer::showDialog01 @ 0x1403d82a5
// > SecretRewardsLayer::showDialog01 @ 0x1403d83b3
// > SecretRewardsLayer::showDialog01 @ 0x1403d84a3
// > SecretRewardsLayer::showDialog01 @ 0x1403d8641
// > SecretRewardsLayer::showDialog01 @ 0x1403d871a
// > SecretRewardsLayer::showDialog01 @ 0x1403d88d2
// > SecretRewardsLayer::showDialog01 @ 0x1403d89ad
// > SecretRewardsLayer::showDialog01 @ 0x1403d8a91
// > SecretRewardsLayer::showDialog01 @ 0x1403d8b61
// > SecretRewardsLayer::showDialog01 @ 0x1403d8d23
// > SecretRewardsLayer::showDialog01 @ 0x1403d8e07
// > SecretRewardsLayer::showDialog01 @ 0x1403d8eeb
// > SecretRewardsLayer::showDialog01 @ 0x1403d9035
// > SecretRewardsLayer::showDialog01 @ 0x1403d90ff
// > SecretRewardsLayer::showDialog01 @ 0x1403d91e4
// > SecretRewardsLayer::showDialog01 @ 0x1403d92ca
// > SecretRewardsLayer::showDialog01 @ 0x1403d93a0
// > SecretRewardsLayer::showDialog01 @ 0x1403d94c4
// > SecretRewardsLayer::showDialog01 @ 0x1403d95b1
// > SecretRewardsLayer::showDialog01 @ 0x1403d9687
// > SecretRewardsLayer::showDialog03 @ 0x1403d991c
// > SecretRewardsLayer::showDialog03 @ 0x1403d9a21
// > SecretRewardsLayer::showDialog03 @ 0x1403d9ae0
// > SecretRewardsLayer::showDialog03 @ 0x1403d9ba7
// > SecretRewardsLayer::showDialog03 @ 0x1403d9cab
// > SecretRewardsLayer::showDialog03 @ 0x1403d9da7
// > SecretRewardsLayer::showDialog03 @ 0x1403d9f1c
// > SecretRewardsLayer::showDialog03 @ 0x1403d9fe1
// > SecretRewardsLayer::showDialog03 @ 0x1403da0af
// > SecretRewardsLayer::showDialog03 @ 0x1403da1f7
// > SecretRewardsLayer::showDialog03 @ 0x1403da2f9
// > SecretRewardsLayer::showDialog03 @ 0x1403da3ee
// > SecretRewardsLayer::showDialog03 @ 0x1403da583
// > SecretRewardsLayer::showDialog03 @ 0x1403da66a
// > SecretRewardsLayer::showDialog03 @ 0x1403da7c3
// > SecretRewardsLayer::showDialog03 @ 0x1403da8a2
// > SecretRewardsLayer::showDialog03 @ 0x1403da973
// > SecretRewardsLayer::showDialogMechanic @ 0x1403dabfe
// > SecretRewardsLayer::showDialogMechanic @ 0x1403dacd7
// > SecretRewardsLayer::showDialogMechanic @ 0x1403dadc6
// > SecretRewardsLayer::showDialogMechanic @ 0x1403daea1
// > SecretRewardsLayer::showDialogMechanic @ 0x1403daf90
// > SecretRewardsLayer::showDialogMechanic @ 0x1403db0b0
// > SecretRewardsLayer::showDialogMechanic @ 0x1403db17a
// > SecretRewardsLayer::showDialogMechanic @ 0x1403db24f
// > SecretRewardsLayer::showDialogMechanic @ 0x1403db42a
// > SecretRewardsLayer::showDialogMechanic @ 0x1403db4f7
// > SecretRewardsLayer::showDialogMechanic @ 0x1403db5e0
// > SecretRewardsLayer::showDialogMechanic @ 0x1403db721
// > SecretRewardsLayer::showDialogMechanic @ 0x1403db8c6
// > SecretRewardsLayer::showDialogMechanic @ 0x1403db98e
// > SecretRewardsLayer::showDialogMechanic @ 0x1403dbb1c
// > SecretRewardsLayer::showDialogMechanic @ 0x1403dbc09
// > SecretRewardsLayer::showDialogDiamond @ 0x1403dbea4
// > SecretRewardsLayer::showDialogDiamond @ 0x1403dbf89
// > SecretRewardsLayer::showDialogDiamond @ 0x1403dc07b
// > SecretRewardsLayer::showDialogDiamond @ 0x1403dc194
// > SecretRewardsLayer::showDialogDiamond @ 0x1403dc389
// > SecretRewardsLayer::showDialogDiamond @ 0x1403dc470
// > SecretRewardsLayer::showDialogDiamond @ 0x1403dc5e0
// > SecretRewardsLayer::showDialogDiamond @ 0x1403dc7c1
// > SecretRewardsLayer::showDialogDiamond @ 0x1403dc8bb
// > SecretLayer2::showCompletedLevel @ 0x1403e39e5
// > SecretLayer2::showCompletedLevel @ 0x1403e3abd
// > SecretLayer2::showCompletedLevel @ 0x1403e3bb8
// > SecretLayer2::showCompletedLevel @ 0x1403e3ca8
// > SecretLayer2::showCompletedLevel @ 0x1403e3d98
// > SecretLayer2::showCompletedLevel @ 0x1403e3e7f
// > SecretLayer2::showCompletedLevel @ 0x1403e3f6e
// > SecretLayer2::showCompletedLevel @ 0x1403e4025
// > SecretLayer2::showCompletedLevel @ 0x1403e410a
// > SecretLayer2::showCompletedLevel @ 0x1403e41ee
// > SecretLayer2::showCompletedLevel @ 0x1403e42eb
// > SecretLayer2::showCompletedLevel @ 0x1403e4414
// > SecretLayer2::onSecretLevel @ 0x1403e4871
// > SecretLayer2::onDoor @ 0x1403e5142
// > SecretLayer3::firstInteractionStep2 @ 0x1403eba1e
// > SecretLayer3::firstInteractionStep2 @ 0x1403ebb1b
// > SecretLayer3::firstInteractionStep2 @ 0x1403ebc0a
// > SecretLayer3::firstInteractionStep2 @ 0x1403ebcf1
// > SecretLayer3::firstInteractionStep4 @ 0x1403ebf86
// > SecretLayer3::firstInteractionStep4 @ 0x1403ec06c
// > SecretLayer3::firstInteractionStep4 @ 0x1403ec152
// > SecretLayer3::firstInteractionStep4 @ 0x1403ec25e
// > SecretLayer3::onClick @ 0x1403ec5f1
// > SecretLayer3::onClick @ 0x1403ec6d6
// > SecretLayer3::onClick @ 0x1403ec7e0
// > SecretLayer3::onClick @ 0x1403ec98d
// > SecretLayer3::onClick @ 0x1403eca67
// > SecretLayer3::onClick @ 0x1403ecb50
// > SecretLayer3::onClick @ 0x1403ecd04
// > SecretLayer3::onClick @ 0x1403ece1d
// > SecretLayer3::onClick @ 0x1403ecf02
// > SecretLayer3::onClick @ 0x1403ecff4
// > SecretLayer3::onClick @ 0x1403ed0eb
// > SecretLayer3::showUnlockDialog @ 0x1403ed903
// > SecretLayer3::showUnlockDialog @ 0x1403eda66
// > SecretLayer3::showUnlockDialog @ 0x1403edb52
// > SecretLayer3::revealStep2 @ 0x1403edf27
// > SecretLayer3::revealStep2 @ 0x1403ee00c
// > SecretLayer3::revealStep2 @ 0x1403ee10a
// > SecretLayer3::revealStep4 @ 0x1403ee3dd
// > SecretLayer3::revealStep4 @ 0x1403ee4ce
// > SecretLayer3::revealStep4 @ 0x1403ee634
// > SecretLayer3::revealStep4 @ 0x1403ee736
// > SecretLayer3::revealStep4 @ 0x1403ee81e
// > SecretLayer3::revealStep4 @ 0x1403ee907
// > SecretLayer3::revealStep5 @ 0x1403eebf6
// > SecretLayer3::revealStep5 @ 0x1403eece9
// > SecretLayer3::revealStep5 @ 0x1403eede5
// > SecretLayer3::revealStep5 @ 0x1403eeed7
// > SecretLayer3::revealStep5 @ 0x1403eefd3
// > SecretLayer4::showFirstDialog @ 0x1403f29a5
// > SecretLayer4::showFirstDialog @ 0x1403f2a92
// > SecretLayer4::showFirstDialog @ 0x1403f2b72
// > SecretLayer4::showFirstDialog @ 0x1403f2c69
// > SecretLayer5::showFirstDialog @ 0x1403f79c3
// > SecretLayer5::showFirstDialog @ 0x1403f7ad8
// > SecretLayer5::showFirstDialog @ 0x1403f7bef
// > SecretLayer5::showFirstDialog @ 0x1403f7cd8
// > SecretLayer5::showFirstDialog @ 0x1403f7dca
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1404940d4
// > ??> @ 0x1406c8628
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=6
char *__fastcall DialogObject::create(__int64 a1, __int64 a2, int a3, float a4, char a5, __int64 a6)
{
char *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 = (char *)operator new(0x88u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v9);
*(_QWORD *)v9 = &DialogObject::`vftable';
*(_OWORD *)(v9 + 56) = 0;
*((_QWORD *)v9 + 9) = 0;
*((_QWORD *)v9 + 10) = 15;
v9[56] = 0;
*(_OWORD *)(v9 + 88) = 0;
*((_QWORD *)v9 + 13) = 0;
*((_QWORD *)v9 + 14) = 15;
v9[88] = 0;
*((_DWORD *)v9 + 30) = 0;
*((_DWORD *)v9 + 32) = 1065353216;
v9[132] = 0;
v10 = (void **)sub_14003BDB0((__int64)v16, a2);
v11 = sub_14003BDB0((__int64)v17, a1);
v12 = v11;
if ( v9 + 88 != (char *)v11 )
{
v13 = (void *)v11;
if ( *(_QWORD *)(v11 + 24) > 0xFu )
v13 = *(void **)v11;
sub_14003CCE0((void **)v9 + 11, v13, *(_QWORD *)(v11 + 16));
}
if ( v9 + 56 != (char *)v10 )
{
v14 = v10;
if ( (unsigned __int64)v10[3] > 0xF )
v14 = *v10;
sub_14003CCE0((void **)v9 + 7, v14, (size_t)v10[2]);
}
*((_DWORD *)v9 + 30) = a3;
*((float *)v9 + 32) = a4;
*((_WORD *)v9 + 62) = *(_WORD *)a6;
v9[126] = *(_BYTE *)(a6 + 2);
v9[132] = a5;
sub_14003A830(v12);
sub_14003A830((__int64)v10);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
sub_14003A830(a1);
sub_14003A830(a2);
return v9;
}