{"type": "func", "start": 4300265712, "end": 4300265822, "name": "FindBPMLayer::playMusic", "pseudocode": "// \n// FindBPMLayer::playMusic from 0x10050d8f0 to 0x10050d95e (110 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10095c898\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 __fastcall FindBPMLayer::playMusic(FindBPMLayer *a1)\n{\n  FMODAudioEngine *v1; // r14\n  double v2; // xmm0_8\n  std::string v3; // [rsp+0h] [rbp-30h] BYREF\n\n  v1 = FMODAudioEngine::sharedEngine();\n  MusicDownloadManager::sharedState();\n  MusicDownloadManager::pathForSong(&v3);\n  *(_QWORD *)&v2 = LODWORD(a1->m_elapsed);\n  *(float *)&v2 = *(float *)&v2 * 1000.0;\n  FMODAudioEngine::loadAndPlayMusic(v1, (__int128 *)&v3, (int)*(float *)&v2, 0, v2);\n  if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v3.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; FindBPMLayer::playMusic from 0x10050d8f0 to 0x10050d95e (110 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10095c898\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    rbp                                                            ; +0x0, 0x10050d8f0\nmov     rbp, rsp                                                       ; +0x1, 0x10050d8f1\npush    r15                                                            ; +0x4, 0x10050d8f4\npush    r14                                                            ; +0x6, 0x10050d8f6\npush    rbx                                                            ; +0x8, 0x10050d8f8\nsub     rsp, 18h                                                       ; +0x9, 0x10050d8f9\nmov     rbx, rdi                                                       ; +0xd, 0x10050d8fd\ncall    FMODAudioEngine__sharedEngine                                  ; +0x10, 0x10050d900\nmov     r14, rax                                                       ; +0x15, 0x10050d905\ncall    MusicDownloadManager__sharedState                              ; +0x18, 0x10050d908\nmov     edx, [rbx+2D8h]                                                ; +0x1d, 0x10050d90d\nlea     r15, [rbp+var_30]                                              ; +0x23, 0x10050d913\nmov     rdi, r15; this                                                 ; +0x27, 0x10050d917\nmov     rsi, rax                                                       ; +0x2a, 0x10050d91a\ncall    MusicDownloadManager__pathForSong                              ; +0x2d, 0x10050d91d\nmovss   xmm0, dword ptr [rbx+2B0h]                                     ; +0x32, 0x10050d922\nmulss   xmm0, cs:dword_1008152B8                                       ; +0x3a, 0x10050d92a\ncvttss2si rdx, xmm0                                                    ; +0x42, 0x10050d932\nmov     rdi, r14                                                       ; +0x47, 0x10050d937\nmov     rsi, r15                                                       ; +0x4a, 0x10050d93a\nxor     ecx, ecx                                                       ; +0x4d, 0x10050d93d\ncall    FMODAudioEngine__loadAndPlayMusic                              ; +0x4f, 0x10050d93f\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0x54, 0x10050d944\njz      short loc_10050D953                                            ; +0x58, 0x10050d948\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p             ; +0x5a, 0x10050d94a\ncall    __ZdlPv; operator delete(void *)                               ; +0x5e, 0x10050d94e\nadd     rsp, 18h                                                       ; +0x63, 0x10050d953\npop     rbx                                                            ; +0x67, 0x10050d957\npop     r14                                                            ; +0x68, 0x10050d958\npop     r15                                                            ; +0x6a, 0x10050d95a\npop     rbp                                                            ; +0x6c, 0x10050d95c\nretn                                                                   ; +0x6d, 0x10050d95d", "xrefs": ["<???> @ 0x10095c898"], "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"}