// // SecretGame01Layer::gameStep01 from 0x1004748a0 to 0x100474b68 (712 bytes) // // 1 xrefs: // > SecretGame01Layer::resetGame @ 0x100474007 // // 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::gameStep01(__int64 a1) { __int64 v1; // r13 unsigned int v2; // eax unsigned int v3; // ebx __int64 v4; // r14 __m128 v5; // xmm0 __m128 v6; // xmm1 __int64 v7; // r15 __int64 v8; // r12 unsigned int v9; // r14d __int64 v10; // rax __int64 v11; // r12 __int64 v12; // rax __m128 v13; // xmm1 _OWORD *v14; // r13 char *v15; // rbx _OWORD *v16; // r15 char *v17; // rax __int64 v18; // rdi __int64 v19; // rax _OWORD *v20; // rbx char *v21; // r15 _OWORD *v22; // r12 char *v23; // rax __int64 v24; // rax __m128 v25; // xmm0 _OWORD *v26; // r14 __int64 v27; // rax __int64 v28; // rax __int64 v30; // [rsp+0h] [rbp-40h] float v32; // [rsp+14h] [rbp-2Ch] v1 = a1; v2 = *(_DWORD *)(a1 + 436) - 1; v3 = 2; if ( v2 <= 0xB ) v3 = dword_100A0B040[v2]; v4 = sub_1007FE900(a1); sub_1007FEF70(v4, *(_QWORD *)(a1 + 408)); sub_1007FF190(*(_QWORD *)(a1 + 416)); do { v32 = (float)rand() * 4.6566129e-10; v5 = 0; v5.f32[0] = (float)(int)(sub_1007FEF90(v4) - 1) * v32; v6 = _mm_or_ps(_mm_and_ps(v5, (__m128)xmmword_100A035F0), (__m128)xmmword_100A03600); v6.f32[0] = v6.f32[0] + v5.f32[0]; v7 = (unsigned int)(int)_mm_round_ss((__m128)0LL, v6, 11).f32[0]; v8 = sub_1007FEFE0(v4, v7); sub_1007FF150(v4, (unsigned int)v7, 1); sub_1007FEBF0(*(_QWORD *)(a1 + 416), v8); --v3; } while ( v3 ); if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 416)) ) { v9 = 0; do { v10 = sub_1007FEFE0(*(_QWORD *)(v1 + 416), v9); v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 1072LL))(v10); v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 488LL))(v11); v30 = sub_1007FEFE0(v12, 0); v13 = 0; v13.f32[0] = (float)(int)v9 * 0.2; v14 = cocos2d::CCDelayTime::create(v13); v15 = cocos2d::CCTintTo::create(0, 0xFFu, 0, (__m128)0x3DCCCCCDu); v16 = cocos2d::CCDelayTime::create((__m128)0x3DCCCCCDu); v17 = cocos2d::CCTintTo::create(0x4Bu, 0x4Bu, 75, (__m128)0x3E4CCCCDu); v18 = (__int64)v14; v1 = a1; v19 = sub_10039EB60(v18, v15, v16, v17, 0); cocos2d::CCNode::runAction(v11, v19); v20 = cocos2d::CCDelayTime::create((__m128)v13.u32[0]); v21 = cocos2d::CCTintTo::create(0, 0xFFu, 0, (__m128)0x3DCCCCCDu); v22 = cocos2d::CCDelayTime::create((__m128)0x3DCCCCCDu); v23 = cocos2d::CCTintTo::create(0x3Cu, 0x3Cu, 60, (__m128)0x3E4CCCCDu); v24 = sub_10039EB60((__int64)v20, v21, v22, v23, 0); cocos2d::CCNode::runAction(v30, v24); ++v9; } while ( v9 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 416)) ); v13 = (__m128)v13.u32[0]; v13.f32[0] = (float)((float)(v13.f32[0] + 0.1) + 0.2) + 0.2; v25 = v13; } else { v25 = 0; } v26 = cocos2d::CCDelayTime::create(v25); v27 = cocos2d::CCCallFunc::create(v1, SecretGame01Layer::gameStep02, 0); v28 = sub_10039EB60((__int64)v26, v27, 0); return cocos2d::CCNode::runAction(v1, v28); }
GD Web Decomp Icon

GD Web Decomp

Raw Source