{"type": "func", "start": 5369975008, "end": 5369975189, "name": "FindBPMLayer::recordingDidStop", "pseudocode": "// \n// FindBPMLayer::recordingDidStop from 0x1401350e0 to 0x140135195 (181 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407365a8\n// > <???> @ 0x1409170c0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:04 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall FindBPMLayer::recordingDidStop(__int64 a1)\n{\n  void (__fastcall **v2)(__int64, const char *); // rdi\n  __int64 v3; // rbx\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  __int64 v6; // rcx\n  __int64 result; // rax\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  v2 = *(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 704) + 360LL);\n  v3 = *(_QWORD *)(a1 + 704);\n  v4 = cocos2d::CCString::createWithFormat(\"BPM: %i\", *(_DWORD *)(a1 + 792));\n  CString = cocos2d::CCString::getCString(v4);\n  (*v2)(v3 + 360, CString);\n  v6 = qword_14090C070;\n  if ( !qword_14090C070 )\n  {\n    v8 = operator new(0x3D0u);\n    qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n    v6 = qword_14090C070;\n  }\n  result = MusicDownloadManager::getSongInfoObject(v6, *(unsigned int *)(a1 + 768));\n  if ( result )\n    *(_DWORD *)(result + 484) = *(_DWORD *)(a1 + 792);\n  return result;\n}", "assembly": "; \n; FindBPMLayer::recordingDidStop from 0x1401350e0 to 0x140135195 (181 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407365a8\n; > <???> @ 0x1409170c0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:04 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401350e0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1401350e5\npush    rdi                                                            ; +0xa, 0x1401350ea\nsub     rsp, 20h                                                       ; +0xb, 0x1401350eb\nmov     rsi, rcx                                                       ; +0xf, 0x1401350ef\nmov     rax, [rcx+2C0h]                                                ; +0x12, 0x1401350f2\nmov     rdi, [rax+168h]                                                ; +0x19, 0x1401350f9\nmov     rbx, rax                                                       ; +0x20, 0x140135100\nmov     edx, [rcx+318h]                                                ; +0x23, 0x140135103\nlea     rcx, aBpmI; \"BPM: %i\"                                          ; +0x29, 0x140135109\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x30, 0x140135110\nmov     rcx, rax                                                       ; +0x36, 0x140135116\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x39, 0x140135119\nmov     rdx, rax                                                       ; +0x3f, 0x14013511f\nlea     rcx, [rbx+168h]                                                ; +0x42, 0x140135122\ncall    qword ptr [rdi]                                                ; +0x49, 0x140135129\nmov     rcx, cs:qword_14090C070                                        ; +0x4b, 0x14013512b\ntest    rcx, rcx                                                       ; +0x52, 0x140135132\njnz     short loc_140135169                                            ; +0x55, 0x140135135\nmov     ecx, 3D0h; Size                                                ; +0x57, 0x140135137\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5c, 0x14013513c\nmov     [rsp+28h+arg_0], rax                                           ; +0x61, 0x140135141\nmov     rcx, rax                                                       ; +0x66, 0x140135146\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x69, 0x140135149\nnop                                                                    ; +0x6e, 0x14013514e\nmov     cs:qword_14090C070, rax                                        ; +0x6f, 0x14013514f\nmov     rcx, [rax]                                                     ; +0x76, 0x140135156\nmov     rdx, [rcx+48h]                                                 ; +0x79, 0x140135159\nmov     rcx, rax                                                       ; +0x7d, 0x14013515d\ncall    rdx                                                            ; +0x80, 0x140135160\nmov     rcx, cs:qword_14090C070                                        ; +0x82, 0x140135162\nmov     edx, [rsi+300h]                                                ; +0x89, 0x140135169\ncall    MusicDownloadManager__getSongInfoObject                        ; +0x8f, 0x14013516f\ntest    rax, rax                                                       ; +0x94, 0x140135174\njz      short loc_140135185                                            ; +0x97, 0x140135177\nmov     ecx, [rsi+318h]                                                ; +0x99, 0x140135179\nmov     [rax+1E4h], ecx                                                ; +0x9f, 0x14013517f\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa5, 0x140135185\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xaa, 0x14013518a\nadd     rsp, 20h                                                       ; +0xaf, 0x14013518f\npop     rdi                                                            ; +0xb3, 0x140135193\nretn                                                                   ; +0xb4, 0x140135194", "xrefs": ["<???> @ 0x1407365a8", "<???> @ 0x1409170c0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}