// // FindBPMLayer::registerTouch from 0x10050d980 to 0x10050da4f (207 bytes) // // 1 xrefs: // > @ 0x10095c8a0 // // 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 FindBPMLayer::registerTouch(FindBPMLayer *a1) { int m_beats; // eax float m_elapsed; // xmm0_4 __m128 v3; // xmm1 __m128 v4; // xmm0 cocos2d::CCLabelBMFont *m_bpmLabel; // rbx char *v6; // rsi size_t v7[2]; // [rsp+0h] [rbp-20h] BYREF void *__p; // [rsp+10h] [rbp-10h] m_beats = a1->m_beats; a1->m_beats = m_beats + 1; m_elapsed = a1->m_elapsed; if ( m_beats <= 0 ) { a1->m_startOffset = m_elapsed; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))a1->m_bpmLabel->setString)( a1->m_bpmLabel, "0"); } else { v3 = (__m128)0x42700000u; v3.f32[0] = 60.0 / (float)((float)(m_elapsed - a1->m_startOffset) / (float)m_beats); v4 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v3), (__m128)xmmword_1008150C0); v4.f32[0] = v4.f32[0] + v3.f32[0]; v4.i64[0] = _mm_round_ss(v4, v4, 11).u64[0]; a1->m_beatsPerMinute = (int)v4.f32[0]; m_bpmLabel = a1->m_bpmLabel; GameToolbox::intToString(v7, (int)v4.f32[0], *(double *)v4.i64); if ( (v7[0] & 1) != 0 ) v6 = (char *)__p; else v6 = (char *)v7 + 1; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))m_bpmLabel->setString)(m_bpmLabel, v6); if ( (v7[0] & 1) != 0 ) operator delete(__p); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source