//
// DialogObject::create from 0x1000865b4 to 0x1000866fc (328 bytes)
//
// 200 xrefs:
// > SecretLayer5::showFirstDialog @ 0x100075348
// > SecretLayer5::showFirstDialog @ 0x1000753b0
// > SecretLayer5::showFirstDialog @ 0x100075418
// > SecretLayer5::showFirstDialog @ 0x100075480
// > SecretLayer5::showFirstDialog @ 0x1000754e8
// > CreatorLayer::onMultiplayer @ 0x1000b5fa4
// > CreatorLayer::onSecretVault @ 0x1000b65f8
// > CreatorLayer::onTreasureRoom @ 0x1000b6780
// > CreatorLayer::onTreasureRoom @ 0x1000b67e8
// > CreatorLayer::onTreasureRoom @ 0x1000b6850
// > CreatorLayer::onTreasureRoom @ 0x1000b6984
// > OptionsLayer::onSecretVault @ 0x1000ed28c
// > PlayLayer::destroyPlayer @ 0x10011ef44
// > CharacterColorPage::onMode @ 0x1001297d4
// > GJShopLayer::showCantAffordMessage @ 0x10014c144
// > GJShopLayer::didPurchaseItem @ 0x10014c608
// > GJShopLayer::didPurchaseItem @ 0x10014c670
// > GJShopLayer::didPurchaseItem @ 0x10014c6d8
// > GJShopLayer::didPurchaseItem @ 0x10014c740
// > GJShopLayer::didPurchaseItem @ 0x10014c7a8
// > GJShopLayer::showReactMessage @ 0x10014ca80
// > GJShopLayer::showReactMessage @ 0x10014cae8
// > GJShopLayer::showReactMessage @ 0x10014cb80
// > GJShopLayer::showReactMessage @ 0x10014cbe8
// > GJShopLayer::showReactMessage @ 0x10014cc50
// > GJShopLayer::showReactMessage @ 0x10014ccd0
// > GJShopLayer::showReactMessage @ 0x10014cd38
// > GJShopLayer::showReactMessage @ 0x10014ce94
// > GJShopLayer::showReactMessage @ 0x10014cefc
// > GJShopLayer::showReactMessage @ 0x10014cf64
// > GJShopLayer::showReactMessage @ 0x10014d0dc
// > GJShopLayer::showReactMessage @ 0x10014d144
// > GJShopLayer::showReactMessage @ 0x10014d208
// > DailyLevelPage::dailyStatusFailed @ 0x1001ba53c
// > GauntletSelectLayer::onPlay @ 0x1001bfa9c
// > GauntletSelectLayer::onPlay @ 0x1001bfb08
// > GauntletSelectLayer::onPlay @ 0x1001bfb70
// > LevelListLayer::onClaimReward @ 0x100246248
// > GameOptionsLayer::showPracticeMusicSyncUnlockInfo @ 0x1002e1f44
// > SecretRewardsLayer::onGoldChest @ 0x1002e9e84
// > SecretRewardsLayer::onSpecialItem @ 0x1002ea484
// > SecretRewardsLayer::onSelectItem @ 0x1002eb628
// > SecretRewardsLayer::showDialog01 @ 0x1002eb770
// > SecretRewardsLayer::showDialog01 @ 0x1002eb7d8
// > SecretRewardsLayer::showDialog01 @ 0x1002eb840
// > SecretRewardsLayer::showDialog01 @ 0x1002eb8a8
// > SecretRewardsLayer::showDialog01 @ 0x1002eb938
// > SecretRewardsLayer::showDialog01 @ 0x1002eb9a0
// > SecretRewardsLayer::showDialog01 @ 0x1002eba08
// > SecretRewardsLayer::showDialog01 @ 0x1002eba70
// > SecretRewardsLayer::showDialog01 @ 0x1002ebad8
// > SecretRewardsLayer::showDialog01 @ 0x1002ebb70
// > SecretRewardsLayer::showDialog01 @ 0x1002ebbd8
// > SecretRewardsLayer::showDialog01 @ 0x1002ebc40
// > SecretRewardsLayer::showDialog01 @ 0x1002ebca8
// > SecretRewardsLayer::showDialog01 @ 0x1002ebd10
// > SecretRewardsLayer::showDialog01 @ 0x1002ebd78
// > SecretRewardsLayer::showDialog01 @ 0x1002ebde0
// > SecretRewardsLayer::showDialog01 @ 0x1002ebe48
// > SecretRewardsLayer::showDialog01 @ 0x1002ebeb0
// > SecretRewardsLayer::showDialog01 @ 0x1002ebf18
// > SecretRewardsLayer::showDialog01 @ 0x1002ebf80
// > SecretRewardsLayer::showDialog01 @ 0x1002ebfe8
// > SecretRewardsLayer::showDialog01 @ 0x1002ec050
// > SecretRewardsLayer::showDialog01 @ 0x1002ec0d0
// > SecretRewardsLayer::showDialog01 @ 0x1002ec14c
// > SecretRewardsLayer::showDialog01 @ 0x1002ec1b4
// > SecretRewardsLayer::showDialog01 @ 0x1002ec21c
// > SecretRewardsLayer::showDialog01 @ 0x1002ec284
// > SecretRewardsLayer::showDialog03 @ 0x1002ec880
// > SecretRewardsLayer::showDialog03 @ 0x1002ec8e8
// > SecretRewardsLayer::showDialog03 @ 0x1002ec950
// > SecretRewardsLayer::showDialog03 @ 0x1002ec9b8
// > SecretRewardsLayer::showDialog03 @ 0x1002eca64
// > SecretRewardsLayer::showDialog03 @ 0x1002ecacc
// > SecretRewardsLayer::showDialog03 @ 0x1002ecb34
// > SecretRewardsLayer::showDialog03 @ 0x1002ecba8
// > SecretRewardsLayer::showDialog03 @ 0x1002ecc10
// > SecretRewardsLayer::showDialog03 @ 0x1002ecc78
// > SecretRewardsLayer::showDialog03 @ 0x1002ecce0
// > SecretRewardsLayer::showDialog03 @ 0x1002ecd48
// > SecretRewardsLayer::showDialog03 @ 0x1002ecdb0
// > SecretRewardsLayer::showDialog03 @ 0x1002ece18
// > SecretRewardsLayer::showDialog03 @ 0x1002ece94
// > SecretRewardsLayer::showDialog03 @ 0x1002ecefc
// > SecretRewardsLayer::showDialog03 @ 0x1002ecf64
// > SecretRewardsLayer::showDialog03 @ 0x1002ecfe4
// > SecretRewardsLayer::showDialog03 @ 0x1002ed04c
// > SecretRewardsLayer::showDialog03 @ 0x1002ed0b4
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed56c
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed5d4
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed63c
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed6a4
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed70c
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed7a0
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed81c
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed884
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed8ec
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed960
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed9c8
// > SecretRewardsLayer::showDialogMechanic @ 0x1002eda30
// > SecretRewardsLayer::showDialogMechanic @ 0x1002eda98
// > SecretRewardsLayer::showDialogMechanic @ 0x1002edb00
// > SecretRewardsLayer::showDialogMechanic @ 0x1002edb68
// > SecretRewardsLayer::showDialogMechanic @ 0x1002edbe4
// > SecretRewardsLayer::showDialogMechanic @ 0x1002edc4c
// > SecretRewardsLayer::showDialogMechanic @ 0x1002edccc
// > SecretRewardsLayer::showDialogMechanic @ 0x1002edd34
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee1bc
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee224
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee28c
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee314
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee37c
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee40c
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee474
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee4dc
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee544
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee5b0
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee62c
// > GJGarageLayer::showUnlockPopup @ 0x100306608
// > GJGarageLayer::showUnlockPopup @ 0x100306670
// > GJGarageLayer::showUnlockPopup @ 0x1003066d8
// > GJGarageLayer::showUnlockPopup @ 0x100306740
// > GJGarageLayer::showUnlockPopup @ 0x1003067a8
// > GJGarageLayer::showUnlockPopup @ 0x100306810
// > SecretLayer2::onDoor @ 0x10030ba20
// > SecretLayer2::onSecretLevel @ 0x10030bba8
// > SecretLayer2::showCompletedLevel @ 0x10030bca0
// > SecretLayer2::showCompletedLevel @ 0x10030bd08
// > SecretLayer2::showCompletedLevel @ 0x10030bd70
// > SecretLayer2::showCompletedLevel @ 0x10030bdd8
// > SecretLayer2::showCompletedLevel @ 0x10030be40
// > SecretLayer2::showCompletedLevel @ 0x10030bea8
// > SecretLayer2::showCompletedLevel @ 0x10030bf10
// > SecretLayer2::showCompletedLevel @ 0x10030bf78
// > SecretLayer2::showCompletedLevel @ 0x10030bfe0
// > SecretLayer2::showCompletedLevel @ 0x10030c048
// > SecretLayer2::showCompletedLevel @ 0x10030c0b0
// > SecretLayer2::showCompletedLevel @ 0x10030c118
// > SecretLayer3::onClick @ 0x10030f4ac
// > SecretLayer3::onClick @ 0x10030f514
// > SecretLayer3::onClick @ 0x10030f57c
// > SecretLayer3::onClick @ 0x10030f5ec
// > SecretLayer3::onClick @ 0x10030f65c
// > SecretLayer3::onClick @ 0x10030f6c4
// > SecretLayer3::onClick @ 0x10030f72c
// > SecretLayer3::onClick @ 0x10030f794
// > SecretLayer3::onClick @ 0x10030f814
// > SecretLayer3::onClick @ 0x10030f87c
// > SecretLayer3::onClick @ 0x10030f8e4
// > SecretLayer3::firstInteractionStep2 @ 0x10030fef4
// > SecretLayer3::firstInteractionStep2 @ 0x10030ff5c
// > SecretLayer3::firstInteractionStep2 @ 0x10030ffc4
// > SecretLayer3::firstInteractionStep2 @ 0x10031002c
// > SecretLayer3::firstInteractionStep4 @ 0x100310348
// > SecretLayer3::firstInteractionStep4 @ 0x1003103b0
// > SecretLayer3::firstInteractionStep4 @ 0x100310418
// > SecretLayer3::firstInteractionStep4 @ 0x100310484
// > SecretLayer3::showUnlockDialog @ 0x1003106e0
// > SecretLayer3::showUnlockDialog @ 0x100310748
// > SecretLayer3::showUnlockDialog @ 0x1003107a8
// > SecretLayer3::showUnlockDialog @ 0x100310810
// > SecretLayer3::revealStep2 @ 0x100310b1c
// > SecretLayer3::revealStep2 @ 0x100310b84
// > SecretLayer3::revealStep2 @ 0x100310bec
// > SecretLayer3::revealStep4 @ 0x100310e18
// > SecretLayer3::revealStep4 @ 0x100310e80
// > SecretLayer3::revealStep4 @ 0x100310f6c
// > SecretLayer3::revealStep4 @ 0x100310fd4
// > SecretLayer3::revealStep4 @ 0x10031103c
// > SecretLayer3::revealStep4 @ 0x1003110a4
// > SecretLayer3::revealStep5 @ 0x1003112f0
// > SecretLayer3::revealStep5 @ 0x100311358
// > SecretLayer3::revealStep5 @ 0x1003113c0
// > SecretLayer3::revealStep5 @ 0x100311428
// > SecretLayer3::revealStep5 @ 0x100311490
// > LevelAreaLayer::showDialog @ 0x1003452e0
// > LevelAreaLayer::showDialog @ 0x100345348
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x10034692c
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x100346994
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1003469fc
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x100346a64
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x100346acc
// > SecretLayer4::showFirstDialog @ 0x100354940
// > SecretLayer4::showFirstDialog @ 0x1003549a8
// > SecretLayer4::showFirstDialog @ 0x100354a10
// > SecretLayer4::showFirstDialog @ 0x100354a78
// > SongInfoLayer::showCustomMusicUnlockInfo @ 0x1003a8bb0
// > GJPathPage::showCantAffordMessage @ 0x1003ba894
// > LevelPage::onTheTower @ 0x100404a40
// > LevelPage::onTheTower @ 0x100404aa8
// > LevelPage::onTheTower @ 0x100404b10
// > LevelPage::onTheTower @ 0x100404b78
// > LevelPage::onTheTower @ 0x100404be0
// > LevelPage::onSecretDoor @ 0x100405514
// > LevelPage::onSecretDoor @ 0x100405580
// > LevelPage::onSecretDoor @ 0x1004055e8
// > LevelPage::onSecretDoor @ 0x100405674
// > LevelPage::onSecretDoor @ 0x1004056dc
// > LevelPage::onSecretDoor @ 0x100405744
//
// 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
//
char *__fastcall DialogObject::create(__int64 a1, __int64 a2, int a3, char a4, int a5, float a6)
{
char *v12; // x19
std::string __p; // [xsp+0h] [xbp-90h] BYREF
std::string __str; // [xsp+20h] [xbp-70h] BYREF
v12 = (char *)operator new(0x78u);
cocos2d::CCObject::CCObject((__int64)v12);
*(_QWORD *)v12 = off_10077F188;
*(_OWORD *)(v12 + 56) = 0u;
*(_OWORD *)(v12 + 72) = 0u;
*(_OWORD *)(v12 + 88) = 0u;
*((_DWORD *)v12 + 26) = 0;
*((_DWORD *)v12 + 28) = 1065353216;
v12[116] = 0;
if ( *(char *)(a1 + 23) < 0 )
sub_1000097D0(&__str, *(void **)a1, *(_QWORD *)(a1 + 8));
else
__str = *(std::string *)a1;
if ( *(char *)(a2 + 23) < 0 )
sub_1000097D0(&__p, *(void **)a2, *(_QWORD *)(a2 + 8));
else
__p = *(std::string *)a2;
std::string::operator=((std::string *)(v12 + 80), &__str);
std::string::operator=((std::string *)(v12 + 56), &__p);
*((_DWORD *)v12 + 26) = a3;
*((float *)v12 + 28) = a6;
*((_WORD *)v12 + 54) = a5;
v12[110] = BYTE2(a5);
v12[116] = a4;
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v12);
return v12;
}