{"type": "func", "start": 6443147312, "end": 6443147593, "name": "FMOD::Sound::setMusicSpeed", "pseudocode": "// \n// FMOD::Sound::setMusicSpeed from 0x1800aa030 to 0x1800aa149 (281 bytes)\n// \n// 3 xrefs:\n// > FMOD_Sound_SetMusicSpeed @ 0x1800c67e9\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fbe38\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__int64 __fastcall FMOD::Sound::setMusicSpeed(__int64 a1)\n{\n  int v1; // edi\n  unsigned int v2; // ebx\n  _DWORD *v4; // [rsp+30h] [rbp-138h] BYREF\n  __int64 v5; // [rsp+38h] [rbp-130h] BYREF\n  _BYTE v6[256]; // [rsp+40h] [rbp-128h] BYREF\n\n  v5 = 0;\n  v1 = a1;\n  v2 = sub_1800E1460(a1, &v4, &v5);\n  if ( !v2 )\n  {\n    if ( !v4[68] || v4[68] == 7 || v4[68] == 5 )\n    {\n      v2 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 352LL))(v4);\n      if ( !v2 )\n        goto LABEL_9;\n    }\n    else\n    {\n      v2 = 46;\n    }\n  }\n  if ( *((char *)off_1801AED20 + 16) < 0 )\n  {\n    sub_1800F2F20(v6, 256);\n    sub_1800B20E0(v2, 5, v1, (unsigned int)\"Sound::setMusicSpeed\", (__int64)v6);\n  }\nLABEL_9:\n  if ( v5 )\n    sub_180102300(v5, 12);\n  return v2;\n}", "assembly": "; \n; FMOD::Sound::setMusicSpeed from 0x1800aa030 to 0x1800aa149 (281 bytes)\n; \n; 3 xrefs:\n; > FMOD_Sound_SetMusicSpeed @ 0x1800c67e9\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fbe38\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, 0x1800aa030\npush    rdi                                                            ; +0x5, 0x1800aa035\nsub     rsp, 160h                                                      ; +0x6, 0x1800aa036\nmovaps  [rsp+168h+var_18], xmm6                                        ; +0xd, 0x1800aa03d\nmov     rax, cs:__security_cookie                                      ; +0x15, 0x1800aa045\nxor     rax, rsp                                                       ; +0x1c, 0x1800aa04c\nmov     [rsp+168h+var_28], rax                                         ; +0x1f, 0x1800aa04f\nlea     r8, [rsp+168h+var_130]                                         ; +0x27, 0x1800aa057\nmov     [rsp+168h+var_130], 0                                          ; +0x2c, 0x1800aa05c\nlea     rdx, [rsp+168h+var_138]                                        ; +0x35, 0x1800aa065\nmovaps  xmm6, xmm1                                                     ; +0x3a, 0x1800aa06a\nmov     rdi, rcx                                                       ; +0x3d, 0x1800aa06d\ncall    sub_1800E1460                                                  ; +0x40, 0x1800aa070\nmov     ebx, eax                                                       ; +0x45, 0x1800aa075\ntest    eax, eax                                                       ; +0x47, 0x1800aa077\njnz     short loc_1800AA0CB                                            ; +0x49, 0x1800aa079\nmov     rax, [rsp+168h+var_138]                                        ; +0x4b, 0x1800aa07b\nmov     ecx, [rax+110h]                                                ; +0x50, 0x1800aa080\nnop                                                                    ; +0x56, 0x1800aa086\ntest    ecx, ecx                                                       ; +0x57, 0x1800aa087\njz      short loc_1800AA0B4                                            ; +0x59, 0x1800aa089\nmov     rax, [rsp+168h+var_138]                                        ; +0x5b, 0x1800aa08b\nmov     ecx, [rax+110h]                                                ; +0x60, 0x1800aa090\nnop                                                                    ; +0x66, 0x1800aa096\ncmp     ecx, 7                                                         ; +0x67, 0x1800aa097\njz      short loc_1800AA0B4                                            ; +0x6a, 0x1800aa09a\nmov     rax, [rsp+168h+var_138]                                        ; +0x6c, 0x1800aa09c\nmov     ecx, [rax+110h]                                                ; +0x71, 0x1800aa0a1\nnop                                                                    ; +0x77, 0x1800aa0a7\ncmp     ecx, 5                                                         ; +0x78, 0x1800aa0a8\njz      short loc_1800AA0B4                                            ; +0x7b, 0x1800aa0ab\nmov     ebx, 2Eh ; '.'                                                 ; +0x7d, 0x1800aa0ad\njmp     short loc_1800AA0CB                                            ; +0x82, 0x1800aa0b2\nmov     rcx, [rsp+168h+var_138]                                        ; +0x84, 0x1800aa0b4\nmovaps  xmm1, xmm6                                                     ; +0x89, 0x1800aa0b9\nmov     rax, [rcx]                                                     ; +0x8c, 0x1800aa0bc\ncall    qword ptr [rax+160h]                                           ; +0x8f, 0x1800aa0bf\nmov     ebx, eax                                                       ; +0x95, 0x1800aa0c5\ntest    eax, eax                                                       ; +0x97, 0x1800aa0c7\njz      short loc_1800AA10A                                            ; +0x99, 0x1800aa0c9\nmov     rax, cs:off_1801AED20                                          ; +0x9b, 0x1800aa0cb\ntest    byte ptr [rax+10h], 80h                                        ; +0xa2, 0x1800aa0d2\njz      short loc_1800AA10A                                            ; +0xa6, 0x1800aa0d6\nmovaps  xmm2, xmm6                                                     ; +0xa8, 0x1800aa0d8\nlea     rcx, [rsp+168h+var_128]                                        ; +0xab, 0x1800aa0db\nmov     edx, 100h                                                      ; +0xb0, 0x1800aa0e0\ncall    sub_1800F2F20                                                  ; +0xb5, 0x1800aa0e5\nlea     rax, [rsp+168h+var_128]                                        ; +0xba, 0x1800aa0ea\nmov     r8, rdi                                                        ; +0xbf, 0x1800aa0ef\nlea     r9, aSoundSetmusics; \"Sound::setMusicSpeed\"                    ; +0xc2, 0x1800aa0f2\nmov     [rsp+168h+var_148], rax                                        ; +0xc9, 0x1800aa0f9\nmov     edx, 5                                                         ; +0xce, 0x1800aa0fe\nmov     ecx, ebx                                                       ; +0xd3, 0x1800aa103\ncall    sub_1800B20E0                                                  ; +0xd5, 0x1800aa105\nmov     rcx, [rsp+168h+var_130]                                        ; +0xda, 0x1800aa10a\ntest    rcx, rcx                                                       ; +0xdf, 0x1800aa10f\njz      short loc_1800AA11E                                            ; +0xe2, 0x1800aa112\nmov     edx, 0Ch                                                       ; +0xe4, 0x1800aa114\ncall    sub_180102300                                                  ; +0xe9, 0x1800aa119\nmov     eax, ebx                                                       ; +0xee, 0x1800aa11e\nmov     rcx, [rsp+168h+var_28]                                         ; +0xf0, 0x1800aa120\nxor     rcx, rsp; StackCookie                                          ; +0xf8, 0x1800aa128\ncall    __security_check_cookie                                        ; +0xfb, 0x1800aa12b\nmov     rbx, [rsp+168h+arg_10]                                         ; +0x100, 0x1800aa130\nmovaps  xmm6, [rsp+168h+var_18]                                        ; +0x108, 0x1800aa138\nadd     rsp, 160h                                                      ; +0x110, 0x1800aa140\npop     rdi                                                            ; +0x117, 0x1800aa147\nretn                                                                   ; +0x118, 0x1800aa148", "xrefs": ["FMOD_Sound_SetMusicSpeed @ 0x1800c67e9", "<???> @ 0x180194348", "<???> @ 0x1801fbe38"], "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"}