{"type": "func", "start": 3180236, "end": 3180296, "name": "FindBPMLayer::recordingDidStop", "pseudocode": "// \n// FindBPMLayer::recordingDidStop from 0x3086cc to 0x308708 (60 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid FindBPMLayer::recordingDidStop(FindBPMLayer *a1)\n{\n  cocos2d::CCLabelBMFont *m_infoLabel; // r5\n  void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // r6\n  cocos2d::CCString *v4; // r0\n  const char *CString; // r0\n  MusicDownloadManager *v6; // r0\n  SongInfoObject *SongInfoObject; // r0\n\n  m_infoLabel = a1->m_infoLabel;\n  setString = m_infoLabel->setString;\n  v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"BPM: %i\",\n                              (const char *)a1->m_beatsPerMinute);\n  CString = cocos2d::CCString::getCString(v4);\n  setString(m_infoLabel, (const unsigned __int8 *)CString);\n  v6 = MusicDownloadManager::sharedState();\n  SongInfoObject = MusicDownloadManager::getSongInfoObject(v6, a1->m_songID);\n  if ( SongInfoObject )\n    SongInfoObject->m_BPM = a1->m_beatsPerMinute;\n}", "assembly": "; \n; FindBPMLayer::recordingDidStop from 0x3086cc to 0x308708 (60 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x3086cc\nMOV             R4, R0                                                 ; +0x2, 0x3086ce\nLDR.W           R5, [R0,#0x204]                                        ; +0x4, 0x3086d0\nLDR             R0, =(aBpmI - 0x3086E0); \"BPM: %i\"                     ; +0x8, 0x3086d4\nLDR.W           R1, [R4,#0x22C]; char *                                ; +0xa, 0x3086d6\nLDR             R3, [R5]                                               ; +0xe, 0x3086da\nADD             R0, PC; \"BPM: %i\"                                      ; +0x10, 0x3086dc\nLDR.W           R6, [R3,#0x1C8]                                        ; +0x12, 0x3086de\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x16, 0x3086e2\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1a, 0x3086e6\nMOV             R1, R0                                                 ; +0x1e, 0x3086ea\nMOV             R0, R5                                                 ; +0x20, 0x3086ec\nBLX             R6                                                     ; +0x22, 0x3086ee\nBL              _ZN20MusicDownloadManager11sharedStateEv; MusicDownloadManager::sharedState(void) ; +0x24, 0x3086f0\nLDR.W           R1, [R4,#0x21C]; int                                   ; +0x28, 0x3086f4\nBL              _ZN20MusicDownloadManager17getSongInfoObjectEi; MusicDownloadManager::getSongInfoObject(int) ; +0x2c, 0x3086f8\nCBZ             R0, locret_308706                                      ; +0x30, 0x3086fc\nLDR.W           R3, [R4,#0x22C]                                        ; +0x32, 0x3086fe\nSTR.W           R3, [R0,#0x140]                                        ; +0x36, 0x308702\nPOP             {R4-R6,PC}                                             ; +0x3a, 0x308706", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}