// // FindBPMLayer::registerTouch from 0x5c1d0c to 0x5c1e44 (312 bytes) // // 2 xrefs: // > @ 0x6f858 // > @ 0x1146ac0 // // 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 FindBPMLayer::registerTouch(FindBPMLayer *a1) { int v2; // w1 bool v3; // nf cocos2d::CCLabelBMFont *v4; // x21 GameToolbox *m_beatsPerMinute; // x0 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x19 unsigned __int8 *v7; // x0 float m_elapsed; // w3 cocos2d::CCLabelBMFont *m_bpmLabel; // x0 cocos2d::CCLabelBMFont_vtbl *v10; // x2 unsigned int *v11; // x2 int v12; // w1 const unsigned __int8 *v13; // [xsp+40h] [xbp+40h] BYREF v2 = a1->m_beats + 1; v3 = a1->m_beats < 0; a1->m_beats = v2; if ( v3 ^ __OFSUB__(v2, 1) | (v2 == 1) ) { m_elapsed = a1->m_elapsed; m_bpmLabel = a1->m_bpmLabel; v10 = m_bpmLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_startOffset = m_elapsed; v10->setString(m_bpmLabel, (const unsigned __int8 *)"0"); } else { FindBPMLayer::calculateBPM(a1); v4 = a1->m_bpmLabel; m_beatsPerMinute = (GameToolbox *)(unsigned int)a1->m_beatsPerMinute; setString = v4->setString; GameToolbox::intToString((__int64 *)&v13, m_beatsPerMinute); setString(v4, v13); v7 = (unsigned __int8 *)(v13 - 24); if ( v13 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v13 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v13 - 2); *((_DWORD *)v13 - 2) = v12 - 1; } if ( v12 <= 0 ) operator delete(v7); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source