// // CCCountdown::lapFinished from 0x1008ae0a0 to 0x1008ae1b0 (272 bytes) // // 2 xrefs: // > CCCountdown::startTimerWithSeconds @ 0x1008ae095 // > CCCountdown::lapFinished @ 0x1008ae159 // // 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:37:19 +0000 // __int64 __fastcall CCCountdown::lapFinished(__int64 a1) { int v2; // eax __int64 v3; // rdi void (__fastcall *v4)(_QWORD); // rax _QWORD *v5; // rdi __int64 v7; // r14 char *v8; // rax __int64 CString; // rax _OWORD *v10; // r14 char *v11; // rax __int64 v12; // r14 __int64 v13; // rax __int64 v14; // rax v2 = *(_DWORD *)(a1 + 612); *(_DWORD *)(a1 + 612) = v2 - 1; if ( v2 > 1 ) { v7 = *(_QWORD *)(a1 + 616); v8 = sub_10088E820("%i", v2 - 1); CString = cocos2d::CCString::getCString((__int64)v8); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 928LL))(v7, CString); cocos2d::CCProgressTimer::setPercentage(*(_QWORD *)(a1 + 600), (__m128)0x42C80000u); v10 = cocos2d::CCProgressFromTo::create(1.0, 100.0, 0.0); v11 = cocos2d::CCCallFunc::create(a1, (__int64)CCCountdown::lapFinished, 0); v12 = sub_10039EB60((__int64)v10, v11, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 72LL))(v12, 0); v13 = cocos2d::CCDirector::sharedDirector(); v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 144LL))(v13); return cocos2d::CCActionManager::addAction(v14, v12, *(_QWORD *)(a1 + 600), 0); } else { v3 = *(_QWORD *)(a1 + 640); if ( v3 ) { v4 = *(void (__fastcall **)(_QWORD))(a1 + 624); v5 = (_QWORD *)(*(_QWORD *)(a1 + 632) + v3); if ( ((unsigned __int8)v4 & 1) != 0 ) v4 = *(void (__fastcall **)(_QWORD))((char *)v4 + *v5 - 1); v4(v5); } return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1); } }