//
// DialogObject::create from 0x4d5cf4 to 0x4d5dca (214 bytes)
//
// 234 xrefs:
// > PlayLayer::destroyPlayer @ 0x3141f2
// > CreatorLayer::onMultiplayer @ 0x3aa6bc
// > CreatorLayer::onSecretVault @ 0x3aab40
// > CreatorLayer::onTreasureRoom @ 0x3aac88
// > CreatorLayer::onTreasureRoom @ 0x3aacd6
// > CreatorLayer::onTreasureRoom @ 0x3aad24
// > CreatorLayer::onTreasureRoom @ 0x3aade6
// > CreatorLayer::onOnlyFullVersion @ 0x3ab158
// > GJGarageLayer::onRewardedVideo @ 0x40263a
// > GJGarageLayer::onRewardedVideo @ 0x402690
// > GJGarageLayer::onRewardedVideo @ 0x4026e0
// > GJGarageLayer::showUnlockPopup @ 0x40595a
// > GJGarageLayer::showUnlockPopup @ 0x4059a8
// > GJGarageLayer::showUnlockPopup @ 0x4059f6
// > GJGarageLayer::showUnlockPopup @ 0x405a44
// > GJGarageLayer::showUnlockPopup @ 0x405a92
// > GJGarageLayer::showUnlockPopup @ 0x405ae0
// > LevelPage::onTheTower @ 0x408762
// > LevelPage::onTheTower @ 0x4087ae
// > LevelPage::onTheTower @ 0x4087fa
// > LevelPage::onTheTower @ 0x408846
// > LevelPage::onTheTower @ 0x408892
// > LevelPage::onSecretDoor @ 0x408b50
// > LevelPage::onSecretDoor @ 0x408ba2
// > LevelPage::onSecretDoor @ 0x408bf0
// > LevelPage::onSecretDoor @ 0x408c34
// > LevelPage::onSecretDoor @ 0x408c84
// > LevelPage::onSecretDoor @ 0x408cd2
// > OptionsLayer::onSecretVault @ 0x4219cc
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x42d85c
// > RetryLevelLayer::onRewardedVideo @ 0x43617e
// > RetryLevelLayer::onRewardedVideo @ 0x4361d4
// > RetryLevelLayer::onRewardedVideo @ 0x436224
// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x4b196c
// > DailyLevelPage::dailyStatusFailed @ 0x4d39a6
// > GauntletSelectLayer::onPlay @ 0x4d6c0c
// > GauntletSelectLayer::onPlay @ 0x4d6c58
// > GauntletSelectLayer::onPlay @ 0x4d6ca6
// > GJShopLayer::didPurchaseItem @ 0x4e19fa
// > GJShopLayer::didPurchaseItem @ 0x4e1a46
// > GJShopLayer::didPurchaseItem @ 0x4e1a92
// > GJShopLayer::didPurchaseItem @ 0x4e1ade
// > GJShopLayer::didPurchaseItem @ 0x4e1b2a
// > GJShopLayer::showReactMessage @ 0x4e2414
// > GJShopLayer::showReactMessage @ 0x4e2470
// > GJShopLayer::showReactMessage @ 0x4e24cc
// > GJShopLayer::showReactMessage @ 0x4e2538
// > GJShopLayer::showReactMessage @ 0x4e2594
// > GJShopLayer::showReactMessage @ 0x4e26e2
// > GJShopLayer::showReactMessage @ 0x4e273e
// > GJShopLayer::showReactMessage @ 0x4e279a
// > GJShopLayer::showReactMessage @ 0x4e2832
// > GJShopLayer::showReactMessage @ 0x4e288c
// > GJShopLayer::showReactMessage @ 0x4e2938
// > GJShopLayer::showReactMessage @ 0x4e298e
// > GJShopLayer::showReactMessage @ 0x4e2a0e
// > GJShopLayer::showCantAffordMessage @ 0x4e47a8
// > SecretLayer2::showCompletedLevel @ 0x4ea074
// > SecretLayer2::showCompletedLevel @ 0x4ea0c0
// > SecretLayer2::showCompletedLevel @ 0x4ea10c
// > SecretLayer2::showCompletedLevel @ 0x4ea158
// > SecretLayer2::showCompletedLevel @ 0x4ea1a4
// > SecretLayer2::showCompletedLevel @ 0x4ea1f0
// > SecretLayer2::showCompletedLevel @ 0x4ea23c
// > SecretLayer2::showCompletedLevel @ 0x4ea288
// > SecretLayer2::showCompletedLevel @ 0x4ea2d4
// > SecretLayer2::showCompletedLevel @ 0x4ea320
// > SecretLayer2::showCompletedLevel @ 0x4ea36e
// > SecretLayer2::showCompletedLevel @ 0x4ea3be
// > SecretLayer3::firstInteractionStep4 @ 0x4ea554
// > SecretLayer3::firstInteractionStep4 @ 0x4ea5a0
// > SecretLayer3::firstInteractionStep4 @ 0x4ea5ec
// > SecretLayer3::firstInteractionStep4 @ 0x4ea636
// > SecretLayer3::revealStep2 @ 0x4ea752
// > SecretLayer3::revealStep2 @ 0x4ea7a0
// > SecretLayer3::revealStep2 @ 0x4ea7ee
// > SecretLayer3::revealStep5 @ 0x4ea8f0
// > SecretLayer3::revealStep5 @ 0x4ea93c
// > SecretLayer3::revealStep5 @ 0x4ea988
// > SecretLayer3::revealStep5 @ 0x4ea9d4
// > SecretLayer3::revealStep5 @ 0x4eaa20
// > SecretLayer2::onSecretLevel @ 0x4eabd4
// > SecretLayer3::showUnlockDialog @ 0x4eacd0
// > SecretLayer3::showUnlockDialog @ 0x4ead1e
// > SecretLayer3::showUnlockDialog @ 0x4ead60
// > SecretLayer3::showUnlockDialog @ 0x4eadae
// > SecretLayer3::revealStep4 @ 0x4eaeca
// > SecretLayer3::revealStep4 @ 0x4eaf16
// > SecretLayer3::revealStep4 @ 0x4eaf96
// > SecretLayer3::revealStep4 @ 0x4eafe8
// > SecretLayer3::revealStep4 @ 0x4eb034
// > SecretLayer3::revealStep4 @ 0x4eb080
// > SecretLayer3::firstInteractionStep2 @ 0x4eb4f4
// > SecretLayer3::firstInteractionStep2 @ 0x4eb540
// > SecretLayer3::firstInteractionStep2 @ 0x4eb58c
// > SecretLayer3::firstInteractionStep2 @ 0x4eb5d8
// > SecretLayer3::onClick @ 0x4eb73a
// > SecretLayer3::onClick @ 0x4eb78a
// > SecretLayer3::onClick @ 0x4eb7d6
// > SecretLayer3::onClick @ 0x4eb856
// > SecretLayer3::onClick @ 0x4eb8a2
// > SecretLayer3::onClick @ 0x4eb8ee
// > SecretLayer3::onClick @ 0x4eb97c
// > SecretLayer3::onClick @ 0x4eb9c6
// > SecretLayer3::onClick @ 0x4eba10
// > SecretLayer3::onClick @ 0x4eba5c
// > SecretLayer3::onClick @ 0x4ebaa6
// > SecretLayer2::onDoor @ 0x4edf92
// > SecretLayer4::showFirstDialog @ 0x4effba
// > SecretLayer4::showFirstDialog @ 0x4f0006
// > SecretLayer4::showFirstDialog @ 0x4f0052
// > SecretLayer4::showFirstDialog @ 0x4f009e
// > SecretLayer4::showDialog @ 0x4f0392
// > SecretLayer4::showDialog @ 0x4f03e0
// > SecretLayer4::showDialog @ 0x4f0434
// > SecretLayer4::showDialog @ 0x4f0482
// > SecretLayer4::showDialog @ 0x4f04d6
// > SecretLayer4::showDialog @ 0x4f0524
// > SecretLayer4::showDialog @ 0x4f0578
// > SecretLayer4::showDialog @ 0x4f05c6
// > SecretLayer4::showDialog @ 0x4f061a
// > SecretLayer4::showDialog @ 0x4f0668
// > WorldSelectLayer::showCompleteDialog @ 0x4fc6ea
// > WorldSelectLayer::showCompleteDialog @ 0x4fc734
// > WorldSelectLayer::showCompleteDialog @ 0x4fc780
// > FollowRewardPage::onRewardedVideo @ 0x4ffa9c
// > FollowRewardPage::onRewardedVideo @ 0x4ffaf0
// > FollowRewardPage::onRewardedVideo @ 0x4ffb3e
// > CharacterColorPage::onMode @ 0x56500a
// > LevelAreaLayer::showDialog @ 0x56b5e0
// > LevelAreaLayer::showDialog @ 0x56b62e
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x56b732
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x56b77e
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x56b7ca
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x56b816
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x56b862
// > SecretRewardsLayer::showLockedChest @ 0x585464
// > SecretRewardsLayer::onSpecialItem @ 0x585994
// > SecretRewardsLayer::onSelectItem @ 0x585c88
// > SecretRewardsLayer::onGoldChest @ 0x5873e2
// > SecretRewardsLayer::showDialog01 @ 0x587574
// > SecretRewardsLayer::showDialog01 @ 0x5875c8
// > SecretRewardsLayer::showDialog01 @ 0x58761c
// > SecretRewardsLayer::showDialog01 @ 0x587676
// > SecretRewardsLayer::showDialog01 @ 0x5876ca
// > SecretRewardsLayer::showDialog01 @ 0x58771e
// > SecretRewardsLayer::showDialog01 @ 0x587778
// > SecretRewardsLayer::showDialog01 @ 0x5877cc
// > SecretRewardsLayer::showDialog01 @ 0x587820
// > SecretRewardsLayer::showDialog01 @ 0x587874
// > SecretRewardsLayer::showDialog01 @ 0x5878c8
// > SecretRewardsLayer::showDialog01 @ 0x587922
// > SecretRewardsLayer::showDialog01 @ 0x587976
// > SecretRewardsLayer::showDialog01 @ 0x5879ca
// > SecretRewardsLayer::showDialog01 @ 0x587a1e
// > SecretRewardsLayer::showDialog01 @ 0x587a86
// > SecretRewardsLayer::showDialog01 @ 0x587ae8
// > SecretRewardsLayer::showDialog01 @ 0x587b3c
// > SecretRewardsLayer::showDialog01 @ 0x587b90
// > SecretRewardsLayer::showDialog01 @ 0x587be4
// > SecretRewardsLayer::showDialog01 @ 0x587c66
// > SecretRewardsLayer::showDialog01 @ 0x587cb4
// > SecretRewardsLayer::showDialog01 @ 0x587d02
// > SecretRewardsLayer::showDialog01 @ 0x587e28
// > SecretRewardsLayer::showDialog01 @ 0x587e76
// > SecretRewardsLayer::showDialog01 @ 0x587ec4
// > SecretRewardsLayer::showDialog01 @ 0x587f12
// > SecretRewardsLayer::showDialog03 @ 0x588144
// > SecretRewardsLayer::showDialog03 @ 0x588198
// > SecretRewardsLayer::showDialog03 @ 0x5881ec
// > SecretRewardsLayer::showDialog03 @ 0x588246
// > SecretRewardsLayer::showDialog03 @ 0x58829a
// > SecretRewardsLayer::showDialog03 @ 0x5882ee
// > SecretRewardsLayer::showDialog03 @ 0x588348
// > SecretRewardsLayer::showDialog03 @ 0x58839c
// > SecretRewardsLayer::showDialog03 @ 0x5883f0
// > SecretRewardsLayer::showDialog03 @ 0x588444
// > SecretRewardsLayer::showDialog03 @ 0x5884aa
// > SecretRewardsLayer::showDialog03 @ 0x5884fe
// > SecretRewardsLayer::showDialog03 @ 0x588550
// > SecretRewardsLayer::showDialog03 @ 0x5885c8
// > SecretRewardsLayer::showDialog03 @ 0x588616
// > SecretRewardsLayer::showDialog03 @ 0x588664
// > SecretRewardsLayer::showDialog03 @ 0x58876e
// > SecretRewardsLayer::showDialog03 @ 0x5887bc
// > SecretRewardsLayer::showDialog03 @ 0x58880a
// > SecretRewardsLayer::showDialog03 @ 0x588858
// > SecretRewardsLayer::showDialogMechanic @ 0x588a3a
// > SecretRewardsLayer::showDialogMechanic @ 0x588a8e
// > SecretRewardsLayer::showDialogMechanic @ 0x588ae8
// > SecretRewardsLayer::showDialogMechanic @ 0x588b3c
// > SecretRewardsLayer::showDialogMechanic @ 0x588b90
// > SecretRewardsLayer::showDialogMechanic @ 0x588bea
// > SecretRewardsLayer::showDialogMechanic @ 0x588c3e
// > SecretRewardsLayer::showDialogMechanic @ 0x588c98
// > SecretRewardsLayer::showDialogMechanic @ 0x588cfa
// > SecretRewardsLayer::showDialogMechanic @ 0x588d4e
// > SecretRewardsLayer::showDialogMechanic @ 0x588dc4
// > SecretRewardsLayer::showDialogMechanic @ 0x588e22
// > SecretRewardsLayer::showDialogMechanic @ 0x588e70
// > SecretRewardsLayer::showDialogMechanic @ 0x588ebe
// > SecretRewardsLayer::showDialogMechanic @ 0x588fc0
// > SecretRewardsLayer::showDialogMechanic @ 0x58900e
// > SecretRewardsLayer::showDialogMechanic @ 0x58905c
// > SecretRewardsLayer::showDialogMechanic @ 0x5890aa
// > SecretRewardsLayer::showDialogMechanic @ 0x5890f8
// > SecretRewardsLayer::showDialogDiamond @ 0x5892cc
// > SecretRewardsLayer::showDialogDiamond @ 0x589320
// > SecretRewardsLayer::showDialogDiamond @ 0x589374
// > SecretRewardsLayer::showDialogDiamond @ 0x5893c2
// > SecretRewardsLayer::showDialogDiamond @ 0x589416
// > SecretRewardsLayer::showDialogDiamond @ 0x589472
// > SecretRewardsLayer::showDialogDiamond @ 0x5894ec
// > SecretRewardsLayer::showDialogDiamond @ 0x58953a
// > SecretRewardsLayer::showDialogDiamond @ 0x589624
// > SecretRewardsLayer::showDialogDiamond @ 0x589672
// > SecretRewardsLayer::showDialogDiamond @ 0x5896c0
// > GJPathPage::showCantAffordMessage @ 0x58e8bc
// > LevelListLayer::onClaimReward @ 0x58ed58
// > SecretLayer5::showFirstDialog @ 0x59c15e
// > SecretLayer5::showFirstDialog @ 0x59c1aa
// > SecretLayer5::showFirstDialog @ 0x59c1f6
// > SecretLayer5::showFirstDialog @ 0x59c242
// > SecretLayer5::showFirstDialog @ 0x59c28e
// > SecretLayer5::showDialog @ 0x59d6ce
// > SecretLayer5::showDialog @ 0x59d71c
// > SecretLayer5::showDialog @ 0x59d770
// > SecretLayer5::showDialog @ 0x59d7be
// > SecretLayer5::showDialog @ 0x59d812
// > SecretLayer5::showDialog @ 0x59d860
// > SecretLayer5::showDialog @ 0x59d8b4
// > SecretLayer5::showDialog @ 0x59d902
// > SecretLayer5::showDialog @ 0x59d956
// > SecretLayer5::showDialog @ 0x59d9a4
//
// 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
//
int __fastcall DialogObject::create(DialogObject *this, std::string a2, std::string a3, int a4, float a5, int a6)
{
int v8; // r4
int v9; // r6
int v10; // r3
int v11; // r0
int v13; // [sp+8h] [bp-18h]
_BYTE v14[4]; // [sp+14h] [bp-Ch] BYREF
_BYTE v15[4]; // [sp+18h] [bp-8h] BYREF
v8 = operator new(0x4Cu);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v8);
*(_DWORD *)(v8 + 68) = 1065353216;
*(_DWORD *)v8 = &off_A76EB8;
*(_DWORD *)(v8 + 52) = &unk_ACDDA8;
*(_DWORD *)(v8 + 56) = &unk_ACDDA8;
*(_DWORD *)(v8 + 60) = 0;
*(_BYTE *)(v8 + 72) = 0;
sub_775C20(v14);
sub_775C20(v15);
LOWORD(v13) = a6;
BYTE2(v13) = BYTE2(a6);
v9 = DialogObject::init(v8, (int)v14, (int)v15, (int)a3.m_data.m_data, a4, SLOBYTE(a5), v13);
sub_774008(v15);
sub_774008(v14);
if ( v9 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
}
else
{
v10 = *(_DWORD *)v8;
v11 = v8;
v8 = 0;
(*(void (__fastcall **)(int))(v10 + 8))(v11);
}
return v8;
}