//
// DialogObject::create from 0xa7167c to 0xa7187c (512 bytes)
//
// 236 xrefs:
// > PlayLayer::destroyPlayer @ 0x6ff464
// > CreatorLayer::onOnlyFullVersion @ 0x7dbe58
// > CreatorLayer::onMultiplayer @ 0x7dc058
// > CreatorLayer::onSecretVault @ 0x7dc3ec
// > CreatorLayer::onTreasureRoom @ 0x7dc744
// > CreatorLayer::onTreasureRoom @ 0x7dc830
// > CreatorLayer::onTreasureRoom @ 0x7dc8a4
// > CreatorLayer::onTreasureRoom @ 0x7dc918
// > GJGarageLayer::onRewardedVideo @ 0x8bb4d4
// > GJGarageLayer::onRewardedVideo @ 0x8bb554
// > GJGarageLayer::onRewardedVideo @ 0x8bb5d4
// > GJGarageLayer::showUnlockPopup @ 0x8bf910
// > GJGarageLayer::showUnlockPopup @ 0x8bf988
// > GJGarageLayer::showUnlockPopup @ 0x8bfa00
// > GJGarageLayer::showUnlockPopup @ 0x8bfa78
// > GJGarageLayer::showUnlockPopup @ 0x8bfaf0
// > GJGarageLayer::showUnlockPopup @ 0x8bfb68
// > LevelPage::onTheTower @ 0x8c6614
// > LevelPage::onTheTower @ 0x8c668c
// > LevelPage::onTheTower @ 0x8c6704
// > LevelPage::onTheTower @ 0x8c677c
// > LevelPage::onTheTower @ 0x8c67f4
// > LevelPage::onSecretDoor @ 0x8c6cf0
// > LevelPage::onSecretDoor @ 0x8c6d68
// > LevelPage::onSecretDoor @ 0x8c6de0
// > LevelPage::onSecretDoor @ 0x8c6eb0
// > LevelPage::onSecretDoor @ 0x8c6f28
// > LevelPage::onSecretDoor @ 0x8c6fa0
// > OptionsLayer::onSecretVault @ 0x8f7394
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x903e08
// > RetryLevelLayer::onRewardedVideo @ 0x918cc0
// > RetryLevelLayer::onRewardedVideo @ 0x918d40
// > RetryLevelLayer::onRewardedVideo @ 0x918dc0
// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0xa2b65c
// > DailyLevelPage::dailyStatusFailed @ 0xa6d450
// > GauntletSelectLayer::onPlay @ 0xa73a08
// > GauntletSelectLayer::onPlay @ 0xa73a7c
// > GauntletSelectLayer::onPlay @ 0xa73af0
// > GJShopLayer::didPurchaseItem @ 0xa7d548
// > GJShopLayer::didPurchaseItem @ 0xa7d5bc
// > GJShopLayer::didPurchaseItem @ 0xa7d630
// > GJShopLayer::didPurchaseItem @ 0xa7d6a4
// > GJShopLayer::didPurchaseItem @ 0xa7d718
// > GJShopLayer::showReactMessage @ 0xa7df4c
// > GJShopLayer::showReactMessage @ 0xa7dfc8
// > GJShopLayer::showReactMessage @ 0xa7e044
// > GJShopLayer::showReactMessage @ 0xa7e0dc
// > GJShopLayer::showReactMessage @ 0xa7e158
// > GJShopLayer::showReactMessage @ 0xa7e318
// > GJShopLayer::showReactMessage @ 0xa7e394
// > GJShopLayer::showReactMessage @ 0xa7e410
// > GJShopLayer::showReactMessage @ 0xa7e514
// > GJShopLayer::showReactMessage @ 0xa7e590
// > GJShopLayer::showReactMessage @ 0xa7e6e4
// > GJShopLayer::showReactMessage @ 0xa7e760
// > GJShopLayer::showReactMessage @ 0xa7e804
// > GJShopLayer::showCantAffordMessage @ 0xa80660
// > SecretLayer2::showCompletedLevel @ 0xa8b8e0
// > SecretLayer2::showCompletedLevel @ 0xa8b954
// > SecretLayer2::showCompletedLevel @ 0xa8b9c8
// > SecretLayer2::showCompletedLevel @ 0xa8ba3c
// > SecretLayer2::showCompletedLevel @ 0xa8bab0
// > SecretLayer2::showCompletedLevel @ 0xa8bb24
// > SecretLayer2::showCompletedLevel @ 0xa8bb98
// > SecretLayer2::showCompletedLevel @ 0xa8bc0c
// > SecretLayer2::showCompletedLevel @ 0xa8bc80
// > SecretLayer2::showCompletedLevel @ 0xa8bcf4
// > SecretLayer2::showCompletedLevel @ 0xa8bd68
// > SecretLayer2::showCompletedLevel @ 0xa8bddc
// > SecretLayer2::onSecretLevel @ 0xa8c0bc
// > SecretLayer3::firstInteractionStep2 @ 0xa8c4b8
// > SecretLayer3::firstInteractionStep2 @ 0xa8c52c
// > SecretLayer3::firstInteractionStep2 @ 0xa8c5a0
// > SecretLayer3::firstInteractionStep2 @ 0xa8c614
// > SecretLayer3::firstInteractionStep4 @ 0xa8c808
// > SecretLayer3::firstInteractionStep4 @ 0xa8c87c
// > SecretLayer3::firstInteractionStep4 @ 0xa8c8f0
// > SecretLayer3::firstInteractionStep4 @ 0xa8c964
// > SecretLayer3::onClick @ 0xa8cc38
// > SecretLayer3::onClick @ 0xa8ccac
// > SecretLayer3::onClick @ 0xa8cd20
// > SecretLayer3::onClick @ 0xa8d0c8
// > SecretLayer3::onClick @ 0xa8d13c
// > SecretLayer3::onClick @ 0xa8d1b0
// > SecretLayer3::onClick @ 0xa8d244
// > SecretLayer3::onClick @ 0xa8d2bc
// > SecretLayer3::onClick @ 0xa8d330
// > SecretLayer3::onClick @ 0xa8d3a4
// > SecretLayer3::onClick @ 0xa8d418
// > SecretLayer3::showUnlockDialog @ 0xa8d710
// > SecretLayer3::showUnlockDialog @ 0xa8d784
// > SecretLayer3::showUnlockDialog @ 0xa8d880
// > SecretLayer3::showUnlockDialog @ 0xa8d8f4
// > SecretLayer3::revealStep2 @ 0xa8da20
// > SecretLayer3::revealStep2 @ 0xa8da94
// > SecretLayer3::revealStep2 @ 0xa8db08
// > SecretLayer3::revealStep5 @ 0xa8dcd4
// > SecretLayer3::revealStep5 @ 0xa8dd48
// > SecretLayer3::revealStep5 @ 0xa8ddbc
// > SecretLayer3::revealStep5 @ 0xa8de30
// > SecretLayer3::revealStep5 @ 0xa8dea4
// > SecretLayer3::revealStep4 @ 0xa8ecd8
// > SecretLayer3::revealStep4 @ 0xa8ed4c
// > SecretLayer3::revealStep4 @ 0xa8ee60
// > SecretLayer3::revealStep4 @ 0xa8eedc
// > SecretLayer3::revealStep4 @ 0xa8ef58
// > SecretLayer3::revealStep4 @ 0xa8efcc
// > SecretLayer2::onDoor @ 0xa939c0
// > SecretLayer4::showDialog @ 0xa94938
// > SecretLayer4::showDialog @ 0xa949ac
// > SecretLayer4::showDialog @ 0xa94a9c
// > SecretLayer4::showDialog @ 0xa94b10
// > SecretLayer4::showDialog @ 0xa94ba0
// > SecretLayer4::showDialog @ 0xa94c14
// > SecretLayer4::showDialog @ 0xa94c84
// > SecretLayer4::showDialog @ 0xa94cf8
// > SecretLayer4::showDialog @ 0xa94d68
// > SecretLayer4::showDialog @ 0xa94ddc
// > SecretLayer4::showFirstDialog @ 0xa94f94
// > SecretLayer4::showFirstDialog @ 0xa95008
// > SecretLayer4::showFirstDialog @ 0xa9507c
// > SecretLayer4::showFirstDialog @ 0xa950f0
// > WorldSelectLayer::showCompleteDialog @ 0xaa6e1c
// > WorldSelectLayer::showCompleteDialog @ 0xaa6e90
// > WorldSelectLayer::showCompleteDialog @ 0xaa6f04
// > FollowRewardPage::onRewardedVideo @ 0xaaaa4c
// > FollowRewardPage::onRewardedVideo @ 0xaaaac8
// > FollowRewardPage::onRewardedVideo @ 0xaaab44
// > CharacterColorPage::onMode @ 0xb51ef4
// > LevelAreaLayer::showDialog @ 0xb5a628
// > LevelAreaLayer::showDialog @ 0xb5a69c
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xb5a850
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xb5a8c4
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xb5a938
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xb5a9ac
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xb5aa20
// > SecretRewardsLayer::showDialog01 @ 0xb9ae28
// > SecretRewardsLayer::showDialog01 @ 0xb9ae9c
// > SecretRewardsLayer::showDialog01 @ 0xb9af10
// > SecretRewardsLayer::showDialog01 @ 0xb9af84
// > SecretRewardsLayer::showDialog01 @ 0xb9b068
// > SecretRewardsLayer::showDialog01 @ 0xb9b0f4
// > SecretRewardsLayer::showDialog01 @ 0xb9b168
// > SecretRewardsLayer::showDialog01 @ 0xb9b1dc
// > SecretRewardsLayer::showDialog01 @ 0xb9b250
// > SecretRewardsLayer::showDialog01 @ 0xb9b2f0
// > SecretRewardsLayer::showDialog01 @ 0xb9b364
// > SecretRewardsLayer::showDialog01 @ 0xb9b3d8
// > SecretRewardsLayer::showDialog01 @ 0xb9b44c
// > SecretRewardsLayer::showDialog01 @ 0xb9b4e8
// > SecretRewardsLayer::showDialog01 @ 0xb9b55c
// > SecretRewardsLayer::showDialog01 @ 0xb9b5d0
// > SecretRewardsLayer::showDialog01 @ 0xb9b644
// > SecretRewardsLayer::showDialog01 @ 0xb9b6b8
// > SecretRewardsLayer::showDialog01 @ 0xb9b740
// > SecretRewardsLayer::showDialog01 @ 0xb9b7b4
// > SecretRewardsLayer::showDialog01 @ 0xb9b828
// > SecretRewardsLayer::showDialog01 @ 0xb9b8a0
// > SecretRewardsLayer::showDialog01 @ 0xb9b914
// > SecretRewardsLayer::showDialog01 @ 0xb9b988
// > SecretRewardsLayer::showDialog01 @ 0xb9ba18
// > SecretRewardsLayer::showDialog01 @ 0xb9ba8c
// > SecretRewardsLayer::showDialog01 @ 0xb9bb00
// > SecretRewardsLayer::showDialog03 @ 0xb9bfa8
// > SecretRewardsLayer::showDialog03 @ 0xb9c01c
// > SecretRewardsLayer::showDialog03 @ 0xb9c090
// > SecretRewardsLayer::showDialog03 @ 0xb9c104
// > SecretRewardsLayer::showDialog03 @ 0xb9c1e8
// > SecretRewardsLayer::showDialog03 @ 0xb9c25c
// > SecretRewardsLayer::showDialog03 @ 0xb9c2d0
// > SecretRewardsLayer::showDialog03 @ 0xb9c370
// > SecretRewardsLayer::showDialog03 @ 0xb9c3e4
// > SecretRewardsLayer::showDialog03 @ 0xb9c458
// > SecretRewardsLayer::showDialog03 @ 0xb9c4cc
// > SecretRewardsLayer::showDialog03 @ 0xb9c568
// > SecretRewardsLayer::showDialog03 @ 0xb9c5dc
// > SecretRewardsLayer::showDialog03 @ 0xb9c650
// > SecretRewardsLayer::showDialog03 @ 0xb9c6d8
// > SecretRewardsLayer::showDialog03 @ 0xb9c74c
// > SecretRewardsLayer::showDialog03 @ 0xb9c7c0
// > SecretRewardsLayer::showDialog03 @ 0xb9c850
// > SecretRewardsLayer::showDialog03 @ 0xb9c8c4
// > SecretRewardsLayer::showDialog03 @ 0xb9c938
// > SecretRewardsLayer::showDialogMechanic @ 0xb9cd1c
// > SecretRewardsLayer::showDialogMechanic @ 0xb9cd90
// > SecretRewardsLayer::showDialogMechanic @ 0xb9ce04
// > SecretRewardsLayer::showDialogMechanic @ 0xb9ce78
// > SecretRewardsLayer::showDialogMechanic @ 0xb9ceec
// > SecretRewardsLayer::showDialogMechanic @ 0xb9cfb8
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d044
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d0b8
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d158
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d1cc
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d268
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d2dc
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d350
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d3d8
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d44c
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d4c4
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d554
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d5c8
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d63c
// > SecretRewardsLayer::showDialogDiamond @ 0xb9d9f8
// > SecretRewardsLayer::showDialogDiamond @ 0xb9da6c
// > SecretRewardsLayer::showDialogDiamond @ 0xb9dae0
// > SecretRewardsLayer::showDialogDiamond @ 0xb9dbac
// > SecretRewardsLayer::showDialogDiamond @ 0xb9dc38
// > SecretRewardsLayer::showDialogDiamond @ 0xb9dcd8
// > SecretRewardsLayer::showDialogDiamond @ 0xb9dd4c
// > SecretRewardsLayer::showDialogDiamond @ 0xb9dde8
// > SecretRewardsLayer::showDialogDiamond @ 0xb9de5c
// > SecretRewardsLayer::showDialogDiamond @ 0xb9defc
// > SecretRewardsLayer::showDialogDiamond @ 0xb9df70
// > SecretRewardsLayer::showLockedChest @ 0xb9e4b8
// > SecretRewardsLayer::onSpecialItem @ 0xb9e7e4
// > SecretRewardsLayer::onGoldChest @ 0xb9eb20
// > SecretRewardsLayer::onSelectItem @ 0xb9edf4
// > GJPathPage::showCantAffordMessage @ 0xba83c0
// > LevelListLayer::onClaimReward @ 0xbac05c
// > SecretLayer5::showDialog @ 0xbc5a2c
// > SecretLayer5::showDialog @ 0xbc5aa0
// > SecretLayer5::showDialog @ 0xbc5b90
// > SecretLayer5::showDialog @ 0xbc5c04
// > SecretLayer5::showDialog @ 0xbc5c94
// > SecretLayer5::showDialog @ 0xbc5d08
// > SecretLayer5::showDialog @ 0xbc5d78
// > SecretLayer5::showDialog @ 0xbc5dec
// > SecretLayer5::showDialog @ 0xbc5e5c
// > SecretLayer5::showDialog @ 0xbc5ed0
// > SecretLayer5::showFirstDialog @ 0xbc6088
// > SecretLayer5::showFirstDialog @ 0xbc60fc
// > SecretLayer5::showFirstDialog @ 0xbc6170
// > SecretLayer5::showFirstDialog @ 0xbc61e4
// > SecretLayer5::showFirstDialog @ 0xbc6258
// > GameSettingsLayer::showPracticeMusicSyncUnlockInfo @ 0xc06a38
// > ??> @ 0xb6fc8
//
// This function is hookable on this platform (idp: arm, 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 13:00:23 +0000
//
__int64 __fastcall DialogObject::create(char *a1, char *a2, int a3, char a4, int a5, float a6)
{
__int64 v11; // x19
char v12; // w0
__int64 v13; // x0
__int64 v14; // x1
char v15; // w0
__int64 v16; // x0
__int64 v17; // x1
int v18; // w21
__int64 v19; // x1
__int64 v20; // x0
__int64 v23; // [xsp+68h] [xbp+68h] BYREF
__int64 v24; // [xsp+70h] [xbp+70h]
void *v25; // [xsp+78h] [xbp+78h]
__int64 v26; // [xsp+80h] [xbp+80h] BYREF
__int64 v27; // [xsp+88h] [xbp+88h]
void *v28; // [xsp+90h] [xbp+90h]
v11 = operator new(0x78u);
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v11);
*(_QWORD *)v11 = &off_1492AA0;
*(_QWORD *)(v11 + 56) = 0;
*(_QWORD *)(v11 + 64) = 0;
*(_QWORD *)(v11 + 72) = 0;
*(_QWORD *)(v11 + 80) = 0;
*(_QWORD *)(v11 + 88) = 0;
*(_QWORD *)(v11 + 96) = 0;
*(_DWORD *)(v11 + 104) = 0;
*(_BYTE *)(v11 + 116) = 0;
*(float *)(v11 + 112) = 1.0;
v23 = 0;
v12 = *a1;
v24 = 0;
v25 = nullptr;
if ( (v12 & 1) != 0 )
{
std::string::__init(&v23, *((void **)a1 + 2), *((_QWORD *)a1 + 1));
}
else
{
v13 = *(_QWORD *)a1;
v14 = *((_QWORD *)a1 + 1);
v25 = *((void **)a1 + 2);
v23 = v13;
v24 = v14;
}
v15 = *a2;
v26 = 0;
v27 = 0;
v28 = nullptr;
if ( (v15 & 1) != 0 )
{
std::string::__init(&v26, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v16 = *(_QWORD *)a2;
v17 = *((_QWORD *)a2 + 1);
v28 = *((void **)a2 + 2);
v26 = v16;
v27 = v17;
}
v18 = (unsigned __int8)DialogObject::init(v11, &v23, (__int64)&v26, a3, a4, a5, a6);
if ( (v26 & 1) != 0 )
operator delete(v28);
if ( (v23 & 1) != 0 )
operator delete(v25);
if ( v18 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v11);
}
else
{
v19 = *(_QWORD *)v11;
v20 = v11;
v11 = 0;
(*(void (__fastcall **)(__int64))(v19 + 16))(v20);
}
return v11;
}