//
// SecretLayer3::firstInteractionStep4 from 0x1004a6650 to 0x1004a6968 (792 bytes)
//
// 1 xrefs:
// > SecretLayer3::firstInteractionStep3 @ 0x1004a660a
//
// 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
//
void __fastcall SecretLayer3::firstInteractionStep4(SecretLayer3 *a1)
{
__int64 v1; // rsi
cocos2d::CCArray *v2; // r14
char *v3; // rax
char *v4; // rax
char *v5; // rax
char *v6; // rax
DialogLayer *v7; // r14
__int128 v8; // [rsp+0h] [rbp-D0h] BYREF
void *v9; // [rsp+10h] [rbp-C0h]
__int128 v10; // [rsp+18h] [rbp-B8h] BYREF
void *v11; // [rsp+28h] [rbp-A8h]
__int128 v12; // [rsp+30h] [rbp-A0h] BYREF
void *v13; // [rsp+40h] [rbp-90h]
__int128 v14; // [rsp+48h] [rbp-88h] BYREF
void *v15; // [rsp+58h] [rbp-78h]
std::string v16; // [rsp+60h] [rbp-70h] BYREF
std::string v17; // [rsp+78h] [rbp-58h] BYREF
std::string v18; // [rsp+90h] [rbp-40h] BYREF
std::string v19; // [rsp+A8h] [rbp-28h] BYREF
v2 = (cocos2d::CCArray *)sub_10071F9E0(a1, v1);
LOBYTE(v8) = 6;
*(_DWORD *)((char *)&v8 + 1) = 3026478;
v16.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x38u);
v16.__r_.__value_.__r.__words[0] = 57;
v16.__r_.__value_.__l.__size_ = 48;
strcpy(v16.__r_.__value_.__l.__data_, "RubRub locked me in here, for no reason.");
v3 = DialogObject::create(&v8, &v16, 15, 0, 0xFFFFFF, 1.0);
sub_10071FCD0(v2, v3);
if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v16.__r_.__value_.__l.__data_);
if ( (v8 & 1) != 0 )
operator delete(v9);
LOBYTE(v10) = 6;
*(_DWORD *)((char *)&v10 + 1) = 3026478;
v17.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u);
v17.__r_.__value_.__r.__words[0] = 33;
v17.__r_.__value_.__l.__size_ = 31;
strcpy(v17.__r_.__value_.__l.__data_, "He said there would be chicken.");
v4 = DialogObject::create(&v10, &v17, 15, 0, 0xFFFFFF, 1.0);
sub_10071FCD0(v2, v4);
if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v17.__r_.__value_.__l.__data_);
if ( (v10 & 1) != 0 )
operator delete(v11);
LOBYTE(v12) = 6;
*(_DWORD *)((char *)&v12 + 1) = 3026478;
v18.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x20u);
v18.__r_.__value_.__r.__words[0] = 33;
v18.__r_.__value_.__l.__size_ = 31;
strcpy(v18.__r_.__value_.__l.__data_, "There was no chicken...");
v5 = DialogObject::create(&v12, &v18, 15, 0, 0xFFFFFF, 1.0);
sub_10071FCD0(v2, v5);
if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v18.__r_.__value_.__l.__data_);
if ( (v12 & 1) != 0 )
operator delete(v13);
LOBYTE(v14) = 6;
*(_DWORD *)((char *)&v14 + 1) = 3026478;
v19.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x50u);
v19.__r_.__value_.__r.__words[0] = 81;
v19.__r_.__value_.__l.__size_ = 79;
strcpy(
v19.__r_.__value_.__l.__data_,
"I cannot stay here any longer.\nYou must find a way to release me.");
v6 = DialogObject::create(&v14, &v19, 15, 0, 0xFFFFFF, 0.89999998);
sub_10071FCD0(v2, v6);
if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v19.__r_.__value_.__l.__data_);
if ( (v14 & 1) != 0 )
operator delete(v15);
v7 = DialogLayer::createWithObjects(v2, 4);
((void (__fastcall *)(SecretLayer3 *, DialogLayer *, __int64))a1->addChild_0)(a1, v7, 100);
v7->m_delegate = &a1->DialogDelegate;
((void (__fastcall *)(DialogLayer *, __int64))v7->setTag)(v7, 2);
DialogLayer::updateChatPlacement(v7, Top);
DialogLayer::animateIn(v7, FromCenter);
}