//
// SecretGame01Layer::gameStep02 from 0x100474b70 to 0x100474cca (346 bytes)
//
// 1 xrefs:
// > SecretGame01Layer::gameStep01 @ 0x100474b2f
//
// 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:34 +0000
//
__int64 __fastcall SecretGame01Layer::gameStep02(__int64 a1)
{
__int64 v1; // rax
unsigned int *v2; // rax
_QWORD *v3; // r12
unsigned __int64 v4; // r13
__int64 v5; // r14
__int64 v6; // rax
__int64 v7; // r15
char *v8; // rax
char *v9; // rsi
unsigned __int64 v10; // rax
int v11; // xmm0_4
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 424) + 1000LL))(*(_QWORD *)(a1 + 424), 1);
v1 = *(_QWORD *)(a1 + 408);
if ( v1 )
{
v2 = *(unsigned int **)(v1 + 56);
if ( *v2 )
{
v3 = *((_QWORD **)v2 + 2);
v4 = (unsigned __int64)&v3[*v2 - 1];
do
{
if ( !*v3 )
break;
v5 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v3 + 1072LL))(*v3);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 488LL))(v5);
v7 = sub_1007FEFE0(v6, 0);
v8 = cocos2d::CCTintTo::create(0x7Du, 0x7Du, 125, (__m128)0x3E4CCCCDu);
cocos2d::CCNode::runAction(v5, (__int64)v8);
v9 = cocos2d::CCTintTo::create(0x64u, 0x64u, 100, (__m128)0x3E4CCCCDu);
cocos2d::CCNode::runAction(v7, (__int64)v9);
++v3;
}
while ( (unsigned __int64)v3 <= v4 );
}
}
*(_BYTE *)(a1 + 440) = 1;
*(_DWORD *)(a1 + 444) = 0;
v10 = *(unsigned int *)(a1 + 436);
if ( v10 > 0xC )
v11 = 1092616192;
else
v11 = dword_100A0B070[v10];
*(_DWORD *)(a1 + 448) = v11;
(*(void (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 40LL))(a1, 0.0);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 456) + 344LL))(*(_QWORD *)(a1 + 456), 1);
}