// // FindBPMLayer::registerTouch from 0x14009bdb0 to 0x14009be93 (227 bytes) // // 2 xrefs: // > @ 0x140542468 // > @ 0x1406c753c // // 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 // // Hidden C++ exception states: #wind=1 void FindBPMLayer::registerTouch(FindBPMLayer *a1) { int m_beats; // ecx float v3; // xmm0_4 const char *v4; // rax const char *v5; // rdx _QWORD v6[4]; // [rsp+20h] [rbp-38h] BYREF m_beats = a1->m_beats; a1->m_beats = m_beats + 1; if ( m_beats + 1 > 1 ) { v3 = roundf(60.0 / (float)((float)(a1->m_elapsed - a1->m_startOffset) / (float)m_beats)); a1->m_beatsPerMinute = (int)v3; v4 = (const char *)GameToolbox::intToString(v6, (int)v3); v5 = v4; if ( *((_QWORD *)v4 + 3) > 0xFu ) v5 = *(const char **)v4; a1->m_bpmLabel->setString(&a1->m_bpmLabel->cocos2d::CCLabelProtocol, v5); sub_14003A830((__int64)v6); } else { a1->m_startOffset = a1->m_elapsed; a1->m_bpmLabel->setString(&a1->m_bpmLabel->cocos2d::CCLabelProtocol, "0"); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source