{"type": "func", "start": 4300271088, "end": 4300271198, "name": "FindBPMLayer::playMusic", "pseudocode": "// \n// FindBPMLayer::playMusic from 0x10050edf0 to 0x10050ee5e (110 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b692e0\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 12:31:35 +0000\n// \n\nvoid __fastcall FindBPMLayer::playMusic(__int64 a1)\n{\n  __int64 v1; // r14\n  std::string v2; // [rsp+0h] [rbp-30h] BYREF\n\n  v1 = FMODAudioEngine::sharedEngine();\n  MusicDownloadManager::sharedState(a1);\n  MusicDownloadManager::pathForSong(&v2);\n  FMODAudioEngine::loadAndPlayMusic(v1, (__int128 *)&v2, (int)(float)(*(float *)(a1 + 720) * 1000.0), 0);\n  if ( (*(_BYTE *)&v2.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v2.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; FindBPMLayer::playMusic from 0x10050edf0 to 0x10050ee5e (110 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b692e0\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 12:31:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x10050edf0\nmov     rbp, rsp                                                       ; +0x1, 0x10050edf1\npush    r15                                                            ; +0x4, 0x10050edf4\npush    r14                                                            ; +0x6, 0x10050edf6\npush    rbx                                                            ; +0x8, 0x10050edf8\nsub     rsp, 18h                                                       ; +0x9, 0x10050edf9\nmov     rbx, rdi                                                       ; +0xd, 0x10050edfd\ncall    FMODAudioEngine__sharedEngine                                  ; +0x10, 0x10050ee00\nmov     r14, rax                                                       ; +0x15, 0x10050ee05\ncall    MusicDownloadManager__sharedState                              ; +0x18, 0x10050ee08\nmov     edx, [rbx+2F8h]                                                ; +0x1d, 0x10050ee0d\nlea     r15, [rbp+var_30]                                              ; +0x23, 0x10050ee13\nmov     rdi, r15; this                                                 ; +0x27, 0x10050ee17\nmov     rsi, rax                                                       ; +0x2a, 0x10050ee1a\ncall    MusicDownloadManager__pathForSong                              ; +0x2d, 0x10050ee1d\nmovss   xmm0, dword ptr [rbx+2D0h]                                     ; +0x32, 0x10050ee22\nmulss   xmm0, cs:dword_100A03738                                       ; +0x3a, 0x10050ee2a\ncvttss2si rdx, xmm0                                                    ; +0x42, 0x10050ee32\nmov     rdi, r14                                                       ; +0x47, 0x10050ee37\nmov     rsi, r15                                                       ; +0x4a, 0x10050ee3a\nxor     ecx, ecx                                                       ; +0x4d, 0x10050ee3d\ncall    FMODAudioEngine__loadAndPlayMusic                              ; +0x4f, 0x10050ee3f\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0x54, 0x10050ee44\njz      short loc_10050EE53                                            ; +0x58, 0x10050ee48\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p             ; +0x5a, 0x10050ee4a\ncall    __ZdlPv; operator delete(void *)                               ; +0x5e, 0x10050ee4e\nadd     rsp, 18h                                                       ; +0x63, 0x10050ee53\npop     rbx                                                            ; +0x67, 0x10050ee57\npop     r14                                                            ; +0x68, 0x10050ee58\npop     r15                                                            ; +0x6a, 0x10050ee5a\npop     rbp                                                            ; +0x6c, 0x10050ee5c\nretn                                                                   ; +0x6d, 0x10050ee5d", "xrefs": ["<???> @ 0x100b692e0"], "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"}