//
// SecretLayer3::firstInteractionStep2 from 0xa8c420 to 0xa8c770 (848 bytes)
//
// 3 xrefs:
// > ??> @ 0xdd290
// > SecretLayer3::firstInteractionStep1 @ 0xa8b0f0
// > ??> @ 0x1546a08
//
// 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:38 +0000
//
__int64 __fastcall SecretLayer3::firstInteractionStep2(cocos2d::CCNode **this)
{
cocos2d::CCArray *v2; // x21
cocos2d::CCObject *v3; // x0
cocos2d::CCObject *v4; // x0
cocos2d::CCObject *v5; // x0
cocos2d::CCObject *v6; // x0
cocos2d::CCNode *v7; // x19
__int64 v8; // x2
__int64 v10; // [xsp+58h] [xbp+58h] BYREF
__int64 v11; // [xsp+60h] [xbp+60h]
void *v12; // [xsp+68h] [xbp+68h]
__int64 v13; // [xsp+70h] [xbp+70h] BYREF
__int64 v14; // [xsp+78h] [xbp+78h]
void *v15; // [xsp+80h] [xbp+80h]
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard);
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, "...", 3u);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Well, well, well.\nWhat do we have here?", 0x41u);
v3 = (cocos2d::CCObject *)DialogObject::create((char *)&v10, (char *)&v13, 15, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v2, v3);
if ( (v13 & 1) != 0 )
operator delete(v15);
if ( (v10 & 1) != 0 )
operator delete(v12);
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, "...", 3u);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "You look like someone who is interested in a deal...", 0x4Eu);
v4 = (cocos2d::CCObject *)DialogObject::create((char *)&v10, (char *)&v13, 15, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v2, v4);
if ( (v13 & 1) != 0 )
operator delete(v15);
if ( (v10 & 1) != 0 )
operator delete(v12);
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, "...", 3u);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Help me get out of here, and I will make it worth your while.", 0x45u);
v5 = (cocos2d::CCObject *)DialogObject::create((char *)&v10, (char *)&v13, 15, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v2, v5);
if ( (v13 & 1) != 0 )
operator delete(v15);
if ( (v10 & 1) != 0 )
operator delete(v12);
v10 = 0;
v11 = 0;
v12 = nullptr;
std::string::__init(&v10, "...", 3u);
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "See those locks over there?\nYou need to unlock them.", 0x42u);
v6 = (cocos2d::CCObject *)DialogObject::create((char *)&v10, (char *)&v13, 15, 0, 0xFFFFFF, 1.0);
cocos2d::CCArray::addObject(v2, v6);
if ( (v13 & 1) != 0 )
operator delete(v15);
if ( (v10 & 1) != 0 )
operator delete(v12);
v7 = (cocos2d::CCNode *)DialogLayer::createWithObjects(v2, (cocos2d::CCArray *)byte_4);
(*((void (__fastcall **)(cocos2d::CCNode **, cocos2d::CCNode *, __int64))*this + 58))(this, v7, 100);
v8 = *(_QWORD *)v7;
*((_QWORD *)v7 + 78) = this + 51;
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(v8 + 72))(v7, 1);
DialogLayer::updateChatPlacement((__int64)v7, 1);
DialogLayer::animateIn(v7, 1u);
SecretLayer3::animateEyes(this);
return _stack_chk_guard;
}