{"type": "func", "start": 4300266672, "end": 4300266776, "name": "CreateGuidelinesLayer::playMusic", "pseudocode": "// \n// CreateGuidelinesLayer::playMusic from 0x10050dcb0 to 0x10050dd18 (104 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b68b18\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 CreateGuidelinesLayer::playMusic(__int64 a1)\n{\n  __int64 v1; // r14\n  __int128 v2; // [rsp+0h] [rbp-30h] BYREF\n  void *__p; // [rsp+10h] [rbp-20h]\n\n  v1 = FMODAudioEngine::sharedEngine();\n  (*(void (__fastcall **)(__int128 *))(**(_QWORD **)(a1 + 672) + 16LL))(&v2);\n  FMODAudioEngine::loadAndPlayMusic(v1, &v2, (int)(float)(*(float *)(a1 + 720) * 1000.0), 0);\n  if ( (v2 & 1) != 0 )\n    operator delete(__p);\n}", "assembly": "; \n; CreateGuidelinesLayer::playMusic from 0x10050dcb0 to 0x10050dd18 (104 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b68b18\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, 0x10050dcb0\nmov     rbp, rsp                                                       ; +0x1, 0x10050dcb1\npush    r15                                                            ; +0x4, 0x10050dcb4\npush    r14                                                            ; +0x6, 0x10050dcb6\npush    rbx                                                            ; +0x8, 0x10050dcb8\nsub     rsp, 18h                                                       ; +0x9, 0x10050dcb9\nmov     rbx, rdi                                                       ; +0xd, 0x10050dcbd\ncall    FMODAudioEngine__sharedEngine                                  ; +0x10, 0x10050dcc0\nmov     r14, rax                                                       ; +0x15, 0x10050dcc5\nmov     rsi, [rbx+2A0h]                                                ; +0x18, 0x10050dcc8\nmov     rax, [rsi]                                                     ; +0x1f, 0x10050dccf\nlea     r15, [rbp+var_30]                                              ; +0x22, 0x10050dcd2\nmov     rdi, r15                                                       ; +0x26, 0x10050dcd6\ncall    qword ptr [rax+10h]                                            ; +0x29, 0x10050dcd9\nmovss   xmm0, dword ptr [rbx+2D0h]                                     ; +0x2c, 0x10050dcdc\nmulss   xmm0, cs:dword_100A03738                                       ; +0x34, 0x10050dce4\ncvttss2si rdx, xmm0                                                    ; +0x3c, 0x10050dcec\nmov     rdi, r14                                                       ; +0x41, 0x10050dcf1\nmov     rsi, r15                                                       ; +0x44, 0x10050dcf4\nxor     ecx, ecx                                                       ; +0x47, 0x10050dcf7\ncall    FMODAudioEngine__loadAndPlayMusic                              ; +0x49, 0x10050dcf9\ntest    byte ptr [rbp+var_30], 1                                       ; +0x4e, 0x10050dcfe\njz      short loc_10050DD0D                                            ; +0x52, 0x10050dd02\nmov     rdi, [rbp+__p]; __p                                            ; +0x54, 0x10050dd04\ncall    __ZdlPv; operator delete(void *)                               ; +0x58, 0x10050dd08\nadd     rsp, 18h                                                       ; +0x5d, 0x10050dd0d\npop     rbx                                                            ; +0x61, 0x10050dd11\npop     r14                                                            ; +0x62, 0x10050dd12\npop     r15                                                            ; +0x64, 0x10050dd14\npop     rbp                                                            ; +0x66, 0x10050dd16\nretn                                                                   ; +0x67, 0x10050dd17", "xrefs": ["<???> @ 0x100b68b18"], "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"}