//
// SecretLayer3::firstInteractionStep4 from 0x140581a40 to 0x140581ede (1182 bytes)
//
// 2 xrefs:
// > SecretLayer3::dialogClosed @ 0x140584d60
// > ??> @ 0x14092c99c
//
// This function is hookable on this platform (idp: pc, 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 11:34:26 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCAction *__fastcall SecretLayer3::firstInteractionStep4(__int64 a1)
{
cocos2d::CCArray *v2; // rbx
void **v3; // rax
void **v4; // rax
void **v5; // rax
void **v6; // rax
cocos2d::CCNode *DialogLayer; // rsi
__int64 v8; // rcx
__int64 v9; // rcx
__int64 v10; // rax
__int64 *v11; // rdi
__int64 v12; // rbx
__int64 v13; // rax
__int128 v15; // [rsp+30h] [rbp-40h] BYREF
__int64 v16; // [rsp+40h] [rbp-30h]
__int64 v17; // [rsp+48h] [rbp-28h]
__int128 v18; // [rsp+50h] [rbp-20h] BYREF
__int64 v19; // [rsp+60h] [rbp-10h]
__int64 v20; // [rsp+68h] [rbp-8h]
__int128 *v21; // [rsp+98h] [rbp+28h] BYREF
__int16 v22; // [rsp+A0h] [rbp+30h] BYREF
char v23; // [rsp+A2h] [rbp+32h]
v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);
v21 = &v15;
v22 = -1;
v23 = -1;
v15 = 0;
v16 = 0;
v17 = 0;
*(_QWORD *)&v15 = sub_14003D460(0x40u);
v16 = 48;
v17 = 63;
strcpy((char *)v15, "RubRub locked me in here, for no reason.");
v18 = 0;
v19 = 3;
v20 = 15;
LOWORD(v18) = *(_WORD *)"...";
WORD1(v18) = (unsigned __int8)asc_14070EB14[2];
v3 = DialogObject::create((__int64)&v18, (__int64)&v15, 15, 1.0, 0, (__int64)&v22);
cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v3);
v21 = &v18;
v22 = -1;
v23 = -1;
v18 = 0;
v19 = 0;
v20 = 0;
*(_QWORD *)&v18 = sub_14003D460(0x20u);
v19 = 31;
v20 = 31;
strcpy((char *)v18, "He said there would be chicken.");
v15 = 0;
v16 = 3;
v17 = 15;
LOWORD(v15) = *(_WORD *)"...";
WORD1(v15) = (unsigned __int8)asc_14070EB14[2];
v4 = DialogObject::create((__int64)&v15, (__int64)&v18, 15, 1.0, 0, (__int64)&v22);
cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v4);
v21 = &v18;
v22 = -1;
v23 = -1;
v18 = 0;
v19 = 0;
v20 = 0;
*(_QWORD *)&v18 = sub_14003D460(0x20u);
v19 = 31;
v20 = 31;
strcpy((char *)v18, "There was no chicken...");
v15 = 0;
v16 = 3;
v17 = 15;
LOWORD(v15) = *(_WORD *)"...";
WORD1(v15) = (unsigned __int8)asc_14070EB14[2];
v5 = DialogObject::create((__int64)&v15, (__int64)&v18, 15, 1.0, 0, (__int64)&v22);
cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v5);
v21 = &v18;
v22 = -1;
v23 = -1;
v18 = 0;
v19 = 0;
v20 = 0;
*(_QWORD *)&v18 = sub_14003D460(0x50u);
v19 = 79;
v20 = 79;
strcpy((char *)v18, "I cannot stay here any longer.\nYou must find a way to release me.");
v15 = 0;
v16 = 3;
v17 = 15;
LOWORD(v15) = *(_WORD *)"...";
WORD1(v15) = (unsigned __int8)asc_14070EB14[2];
v6 = DialogObject::create((__int64)&v15, (__int64)&v18, 15, 0.89999998, 0, (__int64)&v22);
cocos2d::CCArray::addObject(v2, (struct cocos2d::CCObject *)v6);
DialogLayer = DialogLayer::createDialogLayer(0, (__int64)v2, 4u);
(*(void (__fastcall **)(__int64, cocos2d::CCNode *, __int64))(*(_QWORD *)a1 + 456LL))(a1, DialogLayer, 100);
v8 = a1 + 408;
if ( !a1 )
v8 = 0;
*((_QWORD *)DialogLayer + 78) = v8;
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)DialogLayer + 64LL))(DialogLayer, 2);
v10 = cocos2d::CCDirector::sharedDirector(v9);
cocos2d::CCDirector::getWinSize(v10, &v21);
v11 = *((__int64 **)DialogLayer + 70);
v12 = *v11;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, *(float *)&v21 * 0.5, (float)(*((float *)&v21 + 1) - 50.0) - 20.0);
(*(void (__fastcall **)(__int64 *, __int64))(v12 + 184))(v11, v13);
return DialogLayer::animateIn(DialogLayer, 1);
}