//
// FindBPMLayer::recordingDidStop from 0x1401350e0 to 0x140135195 (181 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407365a8
// > ??> @ 0x1409170c0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:27:04 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall FindBPMLayer::recordingDidStop(__int64 a1)
{
void (__fastcall **v2)(__int64, const char *); // rdi
__int64 v3; // rbx
cocos2d::CCString *v4; // rax
const char *CString; // rax
__int64 v6; // rcx
__int64 result; // rax
void *v8; // [rsp+30h] [rbp+8h]
v2 = *(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 704) + 360LL);
v3 = *(_QWORD *)(a1 + 704);
v4 = cocos2d::CCString::createWithFormat("BPM: %i", *(_DWORD *)(a1 + 792));
CString = cocos2d::CCString::getCString(v4);
(*v2)(v3 + 360, CString);
v6 = qword_14090C070;
if ( !qword_14090C070 )
{
v8 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v6 = qword_14090C070;
}
result = MusicDownloadManager::getSongInfoObject(v6, *(unsigned int *)(a1 + 768));
if ( result )
*(_DWORD *)(result + 484) = *(_DWORD *)(a1 + 792);
return result;
}