//
// SecretLayer3::firstInteractionStep3 from 0x10049f4b0 to 0x10049f613 (355 bytes)
//
// 1 xrefs:
// > SecretLayer3::dialogClosed @ 0x1004a13bb
//
// 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 12:30:52 +0000
//
__int64 __fastcall SecretLayer3::firstInteractionStep3(__int64 a1)
{
unsigned int v1; // r14d
__int64 v2; // r15
__int64 v3; // r15
__m128 v4; // xmm0
_OWORD *v5; // r12
_OWORD *v6; // rax
__int64 v7; // r13
_OWORD *v8; // rsi
_OWORD *v9; // r13
__int64 v10; // rax
_OWORD *v11; // r14
__int64 v12; // rax
__int64 v13; // rax
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 432)) )
{
v1 = 0;
do
{
v2 = sub_1007FEFE0(*(_QWORD *)(a1 + 432), v1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1056LL))(v2, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 344LL))(v2, 1);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1072LL))(v2);
++v1;
v4 = 0;
v4.f32[0] = (float)(int)v1 * 0.1;
v5 = cocos2d::CCDelayTime::create(v4);
v6 = cocos2d::CCScaleTo::create_1((__m128)0x3F000000u, 1.0);
v7 = cocos2d::CCEaseBounceOut::create(v6);
v8 = cocos2d::CCFadeIn::create((__m128)0x3E19999Au);
v9 = cocos2d::CCSpawn::createWithTwoActions(v7, (__int64)v8);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 160LL))(v3, 2.0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 912LL))(v3, 0);
v10 = sub_10039EB60((__int64)v5, v9, 0);
cocos2d::CCNode::runAction(v3, v10);
}
while ( v1 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 432)) );
}
v11 = cocos2d::CCDelayTime::create((__m128)0x40000000u);
v12 = cocos2d::CCCallFunc::create(a1, SecretLayer3::firstInteractionStep4, 0);
v13 = sub_10039EB60((__int64)v11, v12, 0);
return cocos2d::CCNode::runAction(a1, v13);
}