// // PlayLayer::getCurrentPercentInt from 0x1000b9e40 to 0x1000b9eb2 (114 bytes) // // 0 xrefs: // // 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 // int __fastcall PlayLayer::getCurrentPercentInt(PlayLayer *a1) { __m128 v1; // xmm0 unsigned int *v2; // rax int m_timestamp; // ecx float m_levelLength; // xmm1_4 v2 = (unsigned int *)((__int64 (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1); m_timestamp = a1->m_level->GJBaseGameLayer::m_timestamp; if ( m_timestamp <= 0 ) { v1 = (__m128)*v2; m_levelLength = a1->m_levelLength; } else { v1.f32[0] = (float)(int)a1->m_gameState.m_currentProgress; m_levelLength = (float)(2 * m_timestamp); } v1.f32[0] = fminf(fmaxf((float)(v1.f32[0] / m_levelLength) * 100.0, 0.0), 100.0); return (int)_mm_round_ss(v1, v1, 9).f32[0]; }
GD Web Decomp Icon

GD Web Decomp

Raw Source