//
// DialogObject::create from 0x91639c to 0x9165dc (576 bytes)
//
// 235 xrefs:
// > PlayLayer::destroyPlayer @ 0x5d2174
// > CreatorLayer::onMultiplayer @ 0x6caa38
// > CreatorLayer::onSecretVault @ 0x6caf40
// > CreatorLayer::onTreasureRoom @ 0x6cb3b8
// > CreatorLayer::onTreasureRoom @ 0x6cb4c0
// > CreatorLayer::onTreasureRoom @ 0x6cb538
// > CreatorLayer::onTreasureRoom @ 0x6cb5ac
// > CreatorLayer::onOnlyFullVersion @ 0x6cbbd4
// > GJGarageLayer::onRewardedVideo @ 0x7905dc
// > GJGarageLayer::onRewardedVideo @ 0x790654
// > GJGarageLayer::onRewardedVideo @ 0x7906cc
// > GJGarageLayer::showUnlockPopup @ 0x796404
// > GJGarageLayer::showUnlockPopup @ 0x79647c
// > GJGarageLayer::showUnlockPopup @ 0x7964f0
// > GJGarageLayer::showUnlockPopup @ 0x796564
// > GJGarageLayer::showUnlockPopup @ 0x7965d8
// > GJGarageLayer::showUnlockPopup @ 0x79664c
// > LevelPage::onTheTower @ 0x79b66c
// > LevelPage::onTheTower @ 0x79b6e4
// > LevelPage::onTheTower @ 0x79b758
// > LevelPage::onTheTower @ 0x79b7cc
// > LevelPage::onTheTower @ 0x79b840
// > LevelPage::onSecretDoor @ 0x79bfa4
// > LevelPage::onSecretDoor @ 0x79c01c
// > LevelPage::onSecretDoor @ 0x79c090
// > LevelPage::onSecretDoor @ 0x79c160
// > LevelPage::onSecretDoor @ 0x79c1d8
// > LevelPage::onSecretDoor @ 0x79c24c
// > OptionsLayer::onSecretVault @ 0x7c7928
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x7de344
// > RetryLevelLayer::onRewardedVideo @ 0x7ee854
// > RetryLevelLayer::onRewardedVideo @ 0x7ee8d0
// > RetryLevelLayer::onRewardedVideo @ 0x7ee94c
// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x8d5930
// > DailyLevelPage::dailyStatusFailed @ 0x912e58
// > GauntletSelectLayer::onPlay @ 0x917d9c
// > GauntletSelectLayer::onPlay @ 0x917e14
// > GauntletSelectLayer::onPlay @ 0x917e88
// > GJShopLayer::didPurchaseItem @ 0x92ada4
// > GJShopLayer::didPurchaseItem @ 0x92ae18
// > GJShopLayer::didPurchaseItem @ 0x92ae8c
// > GJShopLayer::didPurchaseItem @ 0x92af00
// > GJShopLayer::didPurchaseItem @ 0x92af74
// > GJShopLayer::showReactMessage @ 0x92c548
// > GJShopLayer::showReactMessage @ 0x92c5cc
// > GJShopLayer::showReactMessage @ 0x92c650
// > GJShopLayer::showReactMessage @ 0x92c6e8
// > GJShopLayer::showReactMessage @ 0x92c76c
// > GJShopLayer::showReactMessage @ 0x92c918
// > GJShopLayer::showReactMessage @ 0x92c9a0
// > GJShopLayer::showReactMessage @ 0x92ca88
// > GJShopLayer::showReactMessage @ 0x92cb04
// > GJShopLayer::showReactMessage @ 0x92cc4c
// > GJShopLayer::showReactMessage @ 0x92ccd0
// > GJShopLayer::showReactMessage @ 0x92cd54
// > GJShopLayer::showReactMessage @ 0x92ce94
// > GJShopLayer::showCantAffordMessage @ 0x930ab0
// > SecretLayer2::onSecretLevel @ 0x93af3c
// > SecretLayer3::revealStep2 @ 0x93b188
// > SecretLayer3::revealStep2 @ 0x93b200
// > SecretLayer3::revealStep2 @ 0x93b274
// > SecretLayer3::firstInteractionStep4 @ 0x93b5e0
// > SecretLayer3::firstInteractionStep4 @ 0x93b658
// > SecretLayer3::firstInteractionStep4 @ 0x93b6cc
// > SecretLayer3::firstInteractionStep4 @ 0x93b740
// > SecretLayer3::firstInteractionStep2 @ 0x93bb40
// > SecretLayer3::firstInteractionStep2 @ 0x93bbb8
// > SecretLayer3::firstInteractionStep2 @ 0x93bc2c
// > SecretLayer3::firstInteractionStep2 @ 0x93bca0
// > SecretLayer3::revealStep5 @ 0x93c0a4
// > SecretLayer3::revealStep5 @ 0x93c11c
// > SecretLayer3::revealStep5 @ 0x93c190
// > SecretLayer3::revealStep5 @ 0x93c204
// > SecretLayer3::revealStep5 @ 0x93c278
// > SecretLayer3::revealStep4 @ 0x93c70c
// > SecretLayer3::revealStep4 @ 0x93c784
// > SecretLayer3::revealStep4 @ 0x93c848
// > SecretLayer3::revealStep4 @ 0x93c8c0
// > SecretLayer3::revealStep4 @ 0x93c934
// > SecretLayer3::revealStep4 @ 0x93c9a8
// > SecretLayer2::showCompletedLevel @ 0x93d0ac
// > SecretLayer2::showCompletedLevel @ 0x93d124
// > SecretLayer2::showCompletedLevel @ 0x93d198
// > SecretLayer2::showCompletedLevel @ 0x93d20c
// > SecretLayer2::showCompletedLevel @ 0x93d280
// > SecretLayer2::showCompletedLevel @ 0x93d2f4
// > SecretLayer2::showCompletedLevel @ 0x93d368
// > SecretLayer2::showCompletedLevel @ 0x93d3dc
// > SecretLayer2::showCompletedLevel @ 0x93d450
// > SecretLayer2::showCompletedLevel @ 0x93d4c4
// > SecretLayer2::showCompletedLevel @ 0x93d538
// > SecretLayer2::showCompletedLevel @ 0x93d5ac
// > SecretLayer3::showUnlockDialog @ 0x93de58
// > SecretLayer3::showUnlockDialog @ 0x93ded0
// > SecretLayer3::showUnlockDialog @ 0x93dfc4
// > SecretLayer3::showUnlockDialog @ 0x93e03c
// > SecretLayer3::onClick @ 0x93e6dc
// > SecretLayer3::onClick @ 0x93e754
// > SecretLayer3::onClick @ 0x93e7c8
// > SecretLayer3::onClick @ 0x93eb90
// > SecretLayer3::onClick @ 0x93ec08
// > SecretLayer3::onClick @ 0x93ec7c
// > SecretLayer3::onClick @ 0x93ed48
// > SecretLayer3::onClick @ 0x93edc4
// > SecretLayer3::onClick @ 0x93ee38
// > SecretLayer3::onClick @ 0x93eeac
// > SecretLayer3::onClick @ 0x93ef20
// > SecretLayer2::onDoor @ 0x946314
// > SecretLayer4::showFirstDialog @ 0x946a1c
// > SecretLayer4::showFirstDialog @ 0x946a94
// > SecretLayer4::showFirstDialog @ 0x946b08
// > SecretLayer4::showFirstDialog @ 0x946b7c
// > SecretLayer4::showDialog @ 0x9471f8
// > SecretLayer4::showDialog @ 0x947270
// > SecretLayer4::showDialog @ 0x947368
// > SecretLayer4::showDialog @ 0x9473e0
// > SecretLayer4::showDialog @ 0x947484
// > SecretLayer4::showDialog @ 0x9474fc
// > SecretLayer4::showDialog @ 0x9475a0
// > SecretLayer4::showDialog @ 0x947618
// > SecretLayer4::showDialog @ 0x9476bc
// > SecretLayer4::showDialog @ 0x947734
// > WorldSelectLayer::showCompleteDialog @ 0x95ea30
// > WorldSelectLayer::showCompleteDialog @ 0x95eaa8
// > WorldSelectLayer::showCompleteDialog @ 0x95eb1c
// > FollowRewardPage::onRewardedVideo @ 0x96359c
// > FollowRewardPage::onRewardedVideo @ 0x963614
// > FollowRewardPage::onRewardedVideo @ 0x96368c
// > CharacterColorPage::onMode @ 0xa24c8c
// > LevelAreaLayer::showDialog @ 0xa2daf0
// > LevelAreaLayer::showDialog @ 0xa2db68
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xa2de4c
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xa2dec4
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xa2df38
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xa2dfac
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xa2e020
// > SecretRewardsLayer::showLockedChest @ 0xa60e24
// > SecretRewardsLayer::onSpecialItem @ 0xa6185c
// > SecretRewardsLayer::onSelectItem @ 0xa61ef8
// > SecretRewardsLayer::onGoldChest @ 0xa644d0
// > SecretRewardsLayer::showDialog01 @ 0xa648a8
// > SecretRewardsLayer::showDialog01 @ 0xa64920
// > SecretRewardsLayer::showDialog01 @ 0xa64994
// > SecretRewardsLayer::showDialog01 @ 0xa64a08
// > SecretRewardsLayer::showDialog01 @ 0xa64ae0
// > SecretRewardsLayer::showDialog01 @ 0xa64b68
// > SecretRewardsLayer::showDialog01 @ 0xa64bdc
// > SecretRewardsLayer::showDialog01 @ 0xa64c50
// > SecretRewardsLayer::showDialog01 @ 0xa64cc4
// > SecretRewardsLayer::showDialog01 @ 0xa64d60
// > SecretRewardsLayer::showDialog01 @ 0xa64dd8
// > SecretRewardsLayer::showDialog01 @ 0xa64e4c
// > SecretRewardsLayer::showDialog01 @ 0xa64ec0
// > SecretRewardsLayer::showDialog01 @ 0xa64f48
// > SecretRewardsLayer::showDialog01 @ 0xa64fc0
// > SecretRewardsLayer::showDialog01 @ 0xa65034
// > SecretRewardsLayer::showDialog01 @ 0xa650a8
// > SecretRewardsLayer::showDialog01 @ 0xa6511c
// > SecretRewardsLayer::showDialog01 @ 0xa651c0
// > SecretRewardsLayer::showDialog01 @ 0xa65238
// > SecretRewardsLayer::showDialog01 @ 0xa652ac
// > SecretRewardsLayer::showDialog01 @ 0xa65350
// > SecretRewardsLayer::showDialog01 @ 0xa653c8
// > SecretRewardsLayer::showDialog01 @ 0xa6543c
// > SecretRewardsLayer::showDialog01 @ 0xa654f0
// > SecretRewardsLayer::showDialog01 @ 0xa65568
// > SecretRewardsLayer::showDialog01 @ 0xa655dc
// > SecretRewardsLayer::showDialog03 @ 0xa66648
// > SecretRewardsLayer::showDialog03 @ 0xa666c0
// > SecretRewardsLayer::showDialog03 @ 0xa66734
// > SecretRewardsLayer::showDialog03 @ 0xa667a8
// > SecretRewardsLayer::showDialog03 @ 0xa66880
// > SecretRewardsLayer::showDialog03 @ 0xa668f8
// > SecretRewardsLayer::showDialog03 @ 0xa6696c
// > SecretRewardsLayer::showDialog03 @ 0xa66a08
// > SecretRewardsLayer::showDialog03 @ 0xa66a80
// > SecretRewardsLayer::showDialog03 @ 0xa66af4
// > SecretRewardsLayer::showDialog03 @ 0xa66b68
// > SecretRewardsLayer::showDialog03 @ 0xa66bf0
// > SecretRewardsLayer::showDialog03 @ 0xa66c68
// > SecretRewardsLayer::showDialog03 @ 0xa66cdc
// > SecretRewardsLayer::showDialog03 @ 0xa66d80
// > SecretRewardsLayer::showDialog03 @ 0xa66df8
// > SecretRewardsLayer::showDialog03 @ 0xa66e6c
// > SecretRewardsLayer::showDialog03 @ 0xa66f20
// > SecretRewardsLayer::showDialog03 @ 0xa66f98
// > SecretRewardsLayer::showDialog03 @ 0xa6700c
// > SecretRewardsLayer::showDialogMechanic @ 0xa67cd0
// > SecretRewardsLayer::showDialogMechanic @ 0xa67d48
// > SecretRewardsLayer::showDialogMechanic @ 0xa67dbc
// > SecretRewardsLayer::showDialogMechanic @ 0xa67e30
// > SecretRewardsLayer::showDialogMechanic @ 0xa67ea4
// > SecretRewardsLayer::showDialogMechanic @ 0xa67f6c
// > SecretRewardsLayer::showDialogMechanic @ 0xa67ff4
// > SecretRewardsLayer::showDialogMechanic @ 0xa68068
// > SecretRewardsLayer::showDialogMechanic @ 0xa68104
// > SecretRewardsLayer::showDialogMechanic @ 0xa6817c
// > SecretRewardsLayer::showDialogMechanic @ 0xa68204
// > SecretRewardsLayer::showDialogMechanic @ 0xa6827c
// > SecretRewardsLayer::showDialogMechanic @ 0xa682f0
// > SecretRewardsLayer::showDialogMechanic @ 0xa68394
// > SecretRewardsLayer::showDialogMechanic @ 0xa6840c
// > SecretRewardsLayer::showDialogMechanic @ 0xa684b0
// > SecretRewardsLayer::showDialogMechanic @ 0xa6853c
// > SecretRewardsLayer::showDialogMechanic @ 0xa685b0
// > SecretRewardsLayer::showDialogMechanic @ 0xa68624
// > SecretRewardsLayer::showDialogDiamond @ 0xa69250
// > SecretRewardsLayer::showDialogDiamond @ 0xa692c8
// > SecretRewardsLayer::showDialogDiamond @ 0xa6933c
// > SecretRewardsLayer::showDialogDiamond @ 0xa69404
// > SecretRewardsLayer::showDialogDiamond @ 0xa6948c
// > SecretRewardsLayer::showDialogDiamond @ 0xa69528
// > SecretRewardsLayer::showDialogDiamond @ 0xa695a0
// > SecretRewardsLayer::showDialogDiamond @ 0xa69628
// > SecretRewardsLayer::showDialogDiamond @ 0xa696a0
// > SecretRewardsLayer::showDialogDiamond @ 0xa69754
// > SecretRewardsLayer::showDialogDiamond @ 0xa697cc
// > GJPathPage::showCantAffordMessage @ 0xa718e8
// > LevelListLayer::onClaimReward @ 0xa738a4
// > SecretLayer5::showFirstDialog @ 0xa90238
// > SecretLayer5::showFirstDialog @ 0xa902b0
// > SecretLayer5::showFirstDialog @ 0xa90324
// > SecretLayer5::showFirstDialog @ 0xa90398
// > SecretLayer5::showFirstDialog @ 0xa9040c
// > SecretLayer5::showDialog @ 0xa92c08
// > SecretLayer5::showDialog @ 0xa92c80
// > SecretLayer5::showDialog @ 0xa92d78
// > SecretLayer5::showDialog @ 0xa92df0
// > SecretLayer5::showDialog @ 0xa92e94
// > SecretLayer5::showDialog @ 0xa92f0c
// > SecretLayer5::showDialog @ 0xa92fb0
// > SecretLayer5::showDialog @ 0xa93028
// > SecretLayer5::showDialog @ 0xa930cc
// > SecretLayer5::showDialog @ 0xa93144
// > ??> @ 0x629d0
//
// 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
//
__int64 __fastcall DialogObject::create(float a1, __int64 a2, __int64 a3, int a4, char a5, int a6)
{
__int64 v9; // x19
int v10; // w22
void *v11; // x0
void *v12; // x0
__int64 v13; // x1
__int64 v14; // x0
unsigned int *v16; // x2
int v17; // w1
unsigned int *v18; // x1
int v19; // w2
__int64 v21; // [xsp+78h] [xbp+78h] BYREF
__int64 v22; // [xsp+80h] [xbp+80h] BYREF
v9 = operator new(0x58u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v9);
*(_QWORD *)v9 = &off_11AB870;
*(_DWORD *)(v9 + 72) = 0;
*(_BYTE *)(v9 + 84) = 0;
*(_QWORD *)(v9 + 56) = &byte_124B6C8;
*(_QWORD *)(v9 + 64) = &byte_124B6C8;
*(float *)(v9 + 80) = 1.0;
sub_D18D28(&v21);
sub_D18D28(&v22);
v10 = (unsigned __int8)DialogObject::init(v9, (__int64)&v21, (__int64)&v22, a4, a5, a6, a1);
v11 = (void *)(v22 - 24);
if ( (__int64 *)(v22 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v18 = (unsigned int *)(v22 - 8);
do
v19 = __ldaxr(v18);
while ( __stlxr(v19 - 1, v18) );
}
else
{
v19 = *(_DWORD *)(v22 - 8);
*(_DWORD *)(v22 - 8) = v19 - 1;
}
if ( v19 <= 0 )
operator delete(v11);
}
v12 = (void *)(v21 - 24);
if ( (__int64 *)(v21 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v16 = (unsigned int *)(v21 - 8);
do
v17 = __ldaxr(v16);
while ( __stlxr(v17 - 1, v16) );
}
else
{
v17 = *(_DWORD *)(v21 - 8);
*(_DWORD *)(v21 - 8) = v17 - 1;
}
if ( v17 <= 0 )
operator delete(v12);
}
if ( v10 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
}
else
{
v13 = *(_QWORD *)v9;
v14 = v9;
v9 = 0;
(*(void (__fastcall **)(__int64))(v13 + 16))(v14);
}
return v9;
}