//
// SecretGame01Layer::gameStep02 from 0x100480210 to 0x10048036a (346 bytes)
//
// 1 xrefs:
// > SecretGame01Layer::gameStep01 @ 0x1004801cf
//
// 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 SecretGame01Layer::gameStep02(SecretGame01Layer *a1)
{
cocos2d::CCArray *m_gameObjects; // rax
cocos2d::ccArray *data; // rax
cocos2d::CCObject **arr; // r12
unsigned __int64 v4; // r13
cocos2d::CCNode *v5; // r14
__int64 v6; // rax
cocos2d::CCNode *v7; // r15
cocos2d::CCTintTo *v8; // rax
cocos2d::CCTintTo *v9; // rsi
unsigned __int64 m_gameDifficulty; // rax
float v11; // xmm0_4
((void (__fastcall *)(cocos2d::CCMenu *, __int64))a1->m_mainMenu->setTouchEnabled)(a1->m_mainMenu, 1);
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
data = m_gameObjects->data;
if ( data->num )
{
arr = data->arr;
v4 = (unsigned __int64)&arr[data->num - 1];
do
{
if ( !*arr )
break;
v5 = (cocos2d::CCNode *)((__int64 (__fastcall *)(cocos2d::CCObject *))(*arr)->__vftable[13].~CCObject_0)(*arr);
v6 = ((__int64 (__fastcall *)(cocos2d::CCNode *))v5->getChildren)(v5);
v7 = (cocos2d::CCNode *)sub_1007200C0(v6, 0);
v8 = cocos2d::CCTintTo::create(0.2, 0x7Du, 0x7Du, 0x7Du);
cocos2d::CCNode::runAction(v5, v8);
v9 = cocos2d::CCTintTo::create(0.2, 0x64u, 0x64u, 0x64u);
cocos2d::CCNode::runAction(v7, v9);
++arr;
}
while ( (unsigned __int64)arr <= v4 );
}
}
a1->m_gameActive = 1;
a1->m_timeElapsed = 0.0;
m_gameDifficulty = (unsigned int)a1->m_gameDifficulty;
if ( m_gameDifficulty > 0xC )
v11 = 10.0;
else
v11 = flt_10081CA30[m_gameDifficulty];
a1->m_gameTime = v11;
((void (__fastcall *)(SecretGame01Layer *, double))a1->update)(a1, 0.0);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_timeBarSprite->setVisible)(a1->m_timeBarSprite, 1);
}