{"type": "func", "start": 5369347344, "end": 5369347494, "name": "FindBPMLayer::playMusic", "pseudocode": "// \n// FindBPMLayer::playMusic from 0x14009bd10 to 0x14009bda6 (150 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140542460\n// > <???> @ 0x1406c7530\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\n// Hidden C++ exception states: #wind=2\nvoid FindBPMLayer::playMusic(FindBPMLayer *a1)\n{\n  MusicDownloadManager *v2; // rax\n  __int64 v3; // rdi\n  FMODAudioEngine *v4; // rcx\n  _BYTE v5[40]; // [rsp+20h] [rbp-28h] BYREF\n  FMODAudioEngine *v6; // [rsp+58h] [rbp+10h]\n\n  v2 = MusicDownloadManager::sharedState();\n  v3 = MusicDownloadManager::pathForSong(v2, v5, (unsigned int)a1->m_songID);\n  v4 = (FMODAudioEngine *)qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v6 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v4 = (FMODAudioEngine *)qword_1406C2E88;\n  }\n  FMODAudioEngine::loadAndPlayMusic(v4, v3, (int)(float)(a1->m_elapsed * 1000.0));\n}", "assembly": "; \n; FindBPMLayer::playMusic from 0x14009bd10 to 0x14009bda6 (150 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140542460\n; > <???> @ 0x1406c7530\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14009bd10\npush    rdi                                                            ; +0x5, 0x14009bd15\nsub     rsp, 40h                                                       ; +0x6, 0x14009bd16\nmov     rbx, rcx                                                       ; +0xa, 0x14009bd1a\nlea     rax, [rsp+48h+var_28]                                          ; +0xd, 0x14009bd1d\nmov     [rsp+48h+arg_0], rax                                           ; +0x12, 0x14009bd22\ncall    MusicDownloadManager__sharedState                              ; +0x17, 0x14009bd27\nmov     rcx, rax                                                       ; +0x1c, 0x14009bd2c\nmov     r8d, [rbx+2E0h]                                                ; +0x1f, 0x14009bd2f\nlea     rdx, [rsp+48h+var_28]                                          ; +0x26, 0x14009bd36\ncall    MusicDownloadManager__pathForSong                              ; +0x2b, 0x14009bd3b\nmov     rdi, rax                                                       ; +0x30, 0x14009bd40\nmov     rcx, cs:qword_1406C2E88                                        ; +0x33, 0x14009bd43\ntest    rcx, rcx                                                       ; +0x3a, 0x14009bd4a\njnz     short loc_14009BD7E                                            ; +0x3d, 0x14009bd4d\nmov     ecx, 888h; Size                                                ; +0x3f, 0x14009bd4f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x44, 0x14009bd54\nmov     [rsp+48h+arg_8], rax                                           ; +0x49, 0x14009bd59\nmov     rcx, rax                                                       ; +0x4e, 0x14009bd5e\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x51, 0x14009bd61\nnop                                                                    ; +0x56, 0x14009bd66\nmov     cs:qword_1406C2E88, rax                                        ; +0x57, 0x14009bd67\nmov     rdx, [rax]                                                     ; +0x5e, 0x14009bd6e\nmov     rcx, rax                                                       ; +0x61, 0x14009bd71\ncall    qword ptr [rdx+48h]                                            ; +0x64, 0x14009bd74\nmov     rcx, cs:qword_1406C2E88                                        ; +0x67, 0x14009bd77\nmovss   xmm0, dword ptr [rbx+2B0h]                                     ; +0x6e, 0x14009bd7e\nmulss   xmm0, cs:dword_14062350C                                       ; +0x76, 0x14009bd86\ncvttss2si r8, xmm0                                                     ; +0x7e, 0x14009bd8e\nmov     rdx, rdi                                                       ; +0x83, 0x14009bd93\ncall    FMODAudioEngine__loadAndPlayMusic                              ; +0x86, 0x14009bd96\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x8b, 0x14009bd9b\nadd     rsp, 40h                                                       ; +0x90, 0x14009bda0\npop     rdi                                                            ; +0x94, 0x14009bda4\nretn                                                                   ; +0x95, 0x14009bda5", "xrefs": ["<???> @ 0x140542460", "<???> @ 0x1406c7530"], "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"}