{"type": "func", "start": 5369975200, "end": 5369975407, "name": "FindBPMLayer::playMusic", "pseudocode": "// \n// FindBPMLayer::playMusic from 0x1401351a0 to 0x14013526f (207 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140736588\n// > <???> @ 0x1409170cc\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=3\nvoid __fastcall FindBPMLayer::playMusic(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rdi\n  _QWORD *v4; // rcx\n  _BYTE v5[40]; // [rsp+20h] [rbp-28h] BYREF\n  void *v6; // [rsp+58h] [rbp+10h]\n  void *v7; // [rsp+58h] [rbp+10h]\n\n  v2 = qword_14090C070;\n  if ( !qword_14090C070 )\n  {\n    v6 = operator new(0x3D0u);\n    qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);\n    v2 = qword_14090C070;\n  }\n  v3 = MusicDownloadManager::pathForSong(v2, v5, *(unsigned int *)(a1 + 768));\n  v4 = (_QWORD *)qword_14090BF60;\n  if ( !qword_14090BF60 )\n  {\n    v7 = operator new(0x8A8u);\n    qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n    v4 = (_QWORD *)qword_14090BF60;\n  }\n  FMODAudioEngine::loadAndPlayMusic(v4, v3, (int)(float)(*(float *)(a1 + 720) * 1000.0));\n}", "assembly": "; \n; FindBPMLayer::playMusic from 0x1401351a0 to 0x14013526f (207 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140736588\n; > <???> @ 0x1409170cc\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_10], rbx                                              ; +0x0, 0x1401351a0\npush    rdi                                                            ; +0x5, 0x1401351a5\nsub     rsp, 40h                                                       ; +0x6, 0x1401351a6\nmov     rbx, rcx                                                       ; +0xa, 0x1401351aa\nlea     rax, [rsp+48h+var_28]                                          ; +0xd, 0x1401351ad\nmov     [rsp+48h+arg_0], rax                                           ; +0x12, 0x1401351b2\nmov     rcx, cs:qword_14090C070                                        ; +0x17, 0x1401351b7\ntest    rcx, rcx                                                       ; +0x1e, 0x1401351be\njnz     short loc_1401351F5                                            ; +0x21, 0x1401351c1\nmov     ecx, 3D0h; Size                                                ; +0x23, 0x1401351c3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x28, 0x1401351c8\nmov     [rsp+48h+arg_8], rax                                           ; +0x2d, 0x1401351cd\nmov     rcx, rax                                                       ; +0x32, 0x1401351d2\ncall    MusicDownloadManager__MusicDownloadManager                     ; +0x35, 0x1401351d5\nnop                                                                    ; +0x3a, 0x1401351da\nmov     cs:qword_14090C070, rax                                        ; +0x3b, 0x1401351db\nmov     rcx, [rax]                                                     ; +0x42, 0x1401351e2\nmov     rdx, [rcx+48h]                                                 ; +0x45, 0x1401351e5\nmov     rcx, rax                                                       ; +0x49, 0x1401351e9\ncall    rdx                                                            ; +0x4c, 0x1401351ec\nmov     rcx, cs:qword_14090C070                                        ; +0x4e, 0x1401351ee\nmov     r8d, [rbx+300h]                                                ; +0x55, 0x1401351f5\nlea     rdx, [rsp+48h+var_28]                                          ; +0x5c, 0x1401351fc\ncall    MusicDownloadManager__pathForSong                              ; +0x61, 0x140135201\nmov     rdi, rax                                                       ; +0x66, 0x140135206\nmov     rcx, cs:qword_14090BF60                                        ; +0x69, 0x140135209\ntest    rcx, rcx                                                       ; +0x70, 0x140135210\njnz     short loc_140135247                                            ; +0x73, 0x140135213\nmov     ecx, 8A8h; Size                                                ; +0x75, 0x140135215\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7a, 0x14013521a\nmov     [rsp+48h+arg_8], rax                                           ; +0x7f, 0x14013521f\nmov     rcx, rax                                                       ; +0x84, 0x140135224\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x87, 0x140135227\nnop                                                                    ; +0x8c, 0x14013522c\nmov     cs:qword_14090BF60, rax                                        ; +0x8d, 0x14013522d\nmov     rcx, [rax]                                                     ; +0x94, 0x140135234\nmov     rdx, [rcx+48h]                                                 ; +0x97, 0x140135237\nmov     rcx, rax                                                       ; +0x9b, 0x14013523b\ncall    rdx                                                            ; +0x9e, 0x14013523e\nmov     rcx, cs:qword_14090BF60                                        ; +0xa0, 0x140135240\nmovss   xmm0, dword ptr [rbx+2D0h]                                     ; +0xa7, 0x140135247\nmulss   xmm0, cs:dword_140835AA4                                       ; +0xaf, 0x14013524f\ncvttss2si r8, xmm0                                                     ; +0xb7, 0x140135257\nmov     rdx, rdi                                                       ; +0xbc, 0x14013525c\ncall    FMODAudioEngine__loadAndPlayMusic                              ; +0xbf, 0x14013525f\nmov     rbx, [rsp+48h+arg_10]                                          ; +0xc4, 0x140135264\nadd     rsp, 40h                                                       ; +0xc9, 0x140135269\npop     rdi                                                            ; +0xcd, 0x14013526d\nretn                                                                   ; +0xce, 0x14013526e", "xrefs": ["<???> @ 0x140736588", "<???> @ 0x1409170cc"], "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"}