{"type": "func", "start": 5369343184, "end": 5369343327, "name": "CreateGuidelinesLayer::playMusic", "pseudocode": "// \n// CreateGuidelinesLayer::playMusic from 0x14009acd0 to 0x14009ad5f (143 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140542978\n// > <???> @ 0x1406c7434\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 CreateGuidelinesLayer::playMusic(CreateGuidelinesLayer *a1)\n{\n  std::string *v2; // rdi\n  FMODAudioEngine *v3; // rcx\n  _BYTE v4[40]; // [rsp+20h] [rbp-28h] BYREF\n  FMODAudioEngine *v5; // [rsp+58h] [rbp+10h]\n\n  v2 = a1->m_delegate->getSongFileName(a1->m_delegate, v4);\n  v3 = (FMODAudioEngine *)qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v5 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = (FMODAudioEngine *)qword_1406C2E88;\n  }\n  FMODAudioEngine::loadAndPlayMusic(v3, (__int64)v2, (int)(float)(a1->m_elapsed * 1000.0));\n}", "assembly": "; \n; CreateGuidelinesLayer::playMusic from 0x14009acd0 to 0x14009ad5f (143 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140542978\n; > <???> @ 0x1406c7434\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, 0x14009acd0\npush    rdi                                                            ; +0x5, 0x14009acd5\nsub     rsp, 40h                                                       ; +0x6, 0x14009acd6\nmov     rbx, rcx                                                       ; +0xa, 0x14009acda\nlea     rax, [rsp+48h+var_28]                                          ; +0xd, 0x14009acdd\nmov     [rsp+48h+arg_0], rax                                           ; +0x12, 0x14009ace2\nmov     rcx, [rcx+280h]                                                ; +0x17, 0x14009ace7\nmov     rax, [rcx]                                                     ; +0x1e, 0x14009acee\nlea     rdx, [rsp+48h+var_28]                                          ; +0x21, 0x14009acf1\ncall    qword ptr [rax+10h]                                            ; +0x26, 0x14009acf6\nmov     rdi, rax                                                       ; +0x29, 0x14009acf9\nmov     rcx, cs:qword_1406C2E88                                        ; +0x2c, 0x14009acfc\ntest    rcx, rcx                                                       ; +0x33, 0x14009ad03\njnz     short loc_14009AD37                                            ; +0x36, 0x14009ad06\nmov     ecx, 888h; Size                                                ; +0x38, 0x14009ad08\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3d, 0x14009ad0d\nmov     [rsp+48h+arg_8], rax                                           ; +0x42, 0x14009ad12\nmov     rcx, rax                                                       ; +0x47, 0x14009ad17\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x4a, 0x14009ad1a\nnop                                                                    ; +0x4f, 0x14009ad1f\nmov     cs:qword_1406C2E88, rax                                        ; +0x50, 0x14009ad20\nmov     rdx, [rax]                                                     ; +0x57, 0x14009ad27\nmov     rcx, rax                                                       ; +0x5a, 0x14009ad2a\ncall    qword ptr [rdx+48h]                                            ; +0x5d, 0x14009ad2d\nmov     rcx, cs:qword_1406C2E88                                        ; +0x60, 0x14009ad30\nmovss   xmm0, dword ptr [rbx+2B0h]                                     ; +0x67, 0x14009ad37\nmulss   xmm0, cs:dword_14062350C                                       ; +0x6f, 0x14009ad3f\ncvttss2si r8, xmm0                                                     ; +0x77, 0x14009ad47\nmov     rdx, rdi                                                       ; +0x7c, 0x14009ad4c\ncall    FMODAudioEngine__loadAndPlayMusic                              ; +0x7f, 0x14009ad4f\nmov     rbx, [rsp+48h+arg_10]                                          ; +0x84, 0x14009ad54\nadd     rsp, 40h                                                       ; +0x89, 0x14009ad59\npop     rdi                                                            ; +0x8d, 0x14009ad5d\nretn                                                                   ; +0x8e, 0x14009ad5e", "xrefs": ["<???> @ 0x140542978", "<???> @ 0x1406c7434"], "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"}