{"type": "func", "start": 6442509664, "end": 6442509875, "name": "FMOD::ChannelControl::setVolumeRamp", "pseudocode": "// \n// FMOD::ChannelControl::setVolumeRamp from 0x18000e560 to 0x18000e633 (211 bytes)\n// \n// 4 xrefs:\n// > FMOD_ChannelGroup_SetVolumeRamp @ 0x1800c53ce\n// > FMOD_Channel_SetVolumeRamp @ 0x1800c5a3e\n// > <???> @ 0x180194348\n// > <???> @ 0x1801f6c54\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::ChannelControl::setVolumeRamp(__int64 a1, unsigned __int8 a2)\n{\n  int v3; // esi\n  unsigned int v4; // ebx\n  __int64 v6; // [rsp+30h] [rbp-128h] BYREF\n  __int64 v7; // [rsp+38h] [rbp-120h] BYREF\n  _BYTE v8[256]; // [rsp+40h] [rbp-118h] BYREF\n\n  v6 = 0;\n  v3 = a1;\n  v4 = sub_180012360(a1, &v7, &v6);\n  if ( (v4 || (v4 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 48LL))(v7, a2)) != 0)\n    && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    sub_1800F3320(v8);\n    sub_1800B20E0(v4, 4, v3, (unsigned int)\"ChannelControl::setVolumeRamp\", (__int64)v8);\n  }\n  if ( v6 )\n    sub_180102320();\n  return v4;\n}", "assembly": "; \n; FMOD::ChannelControl::setVolumeRamp from 0x18000e560 to 0x18000e633 (211 bytes)\n; \n; 4 xrefs:\n; > FMOD_ChannelGroup_SetVolumeRamp @ 0x1800c53ce\n; > FMOD_Channel_SetVolumeRamp @ 0x1800c5a3e\n; > <???> @ 0x180194348\n; > <???> @ 0x1801f6c54\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, 0x18000e560\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x18000e565\npush    rdi                                                            ; +0xa, 0x18000e56a\nsub     rsp, 150h                                                      ; +0xb, 0x18000e56b\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x18000e572\nxor     rax, rsp                                                       ; +0x19, 0x18000e579\nmov     [rsp+158h+var_18], rax                                         ; +0x1c, 0x18000e57c\nmovzx   edi, dl                                                        ; +0x24, 0x18000e584\nmov     [rsp+158h+var_128], 0                                          ; +0x27, 0x18000e587\nlea     rdx, [rsp+158h+var_120]                                        ; +0x30, 0x18000e590\nmov     rsi, rcx                                                       ; +0x35, 0x18000e595\nlea     r8, [rsp+158h+var_128]                                         ; +0x38, 0x18000e598\ncall    sub_180012360                                                  ; +0x3d, 0x18000e59d\nmov     ebx, eax                                                       ; +0x42, 0x18000e5a2\ntest    eax, eax                                                       ; +0x44, 0x18000e5a4\njnz     short loc_18000E5BD                                            ; +0x46, 0x18000e5a6\nmov     rcx, [rsp+158h+var_120]                                        ; +0x48, 0x18000e5a8\nmovzx   edx, dil                                                       ; +0x4d, 0x18000e5ad\nmov     rax, [rcx]                                                     ; +0x51, 0x18000e5b1\ncall    qword ptr [rax+30h]                                            ; +0x54, 0x18000e5b4\nmov     ebx, eax                                                       ; +0x57, 0x18000e5b7\ntest    eax, eax                                                       ; +0x59, 0x18000e5b9\njz      short loc_18000E5FD                                            ; +0x5b, 0x18000e5bb\nmov     rax, cs:off_1801AED20                                          ; +0x5d, 0x18000e5bd\ntest    byte ptr [rax+10h], 80h                                        ; +0x64, 0x18000e5c4\njz      short loc_18000E5FD                                            ; +0x68, 0x18000e5c8\nmovzx   r8d, dil                                                       ; +0x6a, 0x18000e5ca\nlea     rcx, [rsp+158h+var_118]; void *                                ; +0x6e, 0x18000e5ce\nmov     edx, 100h                                                      ; +0x73, 0x18000e5d3\ncall    sub_1800F3320                                                  ; +0x78, 0x18000e5d8\nlea     rax, [rsp+158h+var_118]                                        ; +0x7d, 0x18000e5dd\nmov     r8, rsi                                                        ; +0x82, 0x18000e5e2\nlea     r9, aChannelcontrol_58; \"ChannelControl::setVolumeRamp\"        ; +0x85, 0x18000e5e5\nmov     [rsp+158h+var_138], rax                                        ; +0x8c, 0x18000e5ec\nmov     edx, 4                                                         ; +0x91, 0x18000e5f1\nmov     ecx, ebx                                                       ; +0x96, 0x18000e5f6\ncall    sub_1800B20E0                                                  ; +0x98, 0x18000e5f8\nmov     rcx, [rsp+158h+var_128]                                        ; +0x9d, 0x18000e5fd\ntest    rcx, rcx                                                       ; +0xa2, 0x18000e602\njz      short loc_18000E60C                                            ; +0xa5, 0x18000e605\ncall    sub_180102320                                                  ; +0xa7, 0x18000e607\nmov     eax, ebx                                                       ; +0xac, 0x18000e60c\nmov     rcx, [rsp+158h+var_18]                                         ; +0xae, 0x18000e60e\nxor     rcx, rsp; StackCookie                                          ; +0xb6, 0x18000e616\ncall    __security_check_cookie                                        ; +0xb9, 0x18000e619\nlea     r11, [rsp+158h+var_8]                                          ; +0xbe, 0x18000e61e\nmov     rbx, [r11+20h]                                                 ; +0xc6, 0x18000e626\nmov     rsi, [r11+28h]                                                 ; +0xca, 0x18000e62a\nmov     rsp, r11                                                       ; +0xce, 0x18000e62e\npop     rdi                                                            ; +0xd1, 0x18000e631\nretn                                                                   ; +0xd2, 0x18000e632", "xrefs": ["FMOD_ChannelGroup_SetVolumeRamp @ 0x1800c53ce", "FMOD_Channel_SetVolumeRamp @ 0x1800c5a3e", "<???> @ 0x180194348", "<???> @ 0x1801f6c54"], "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"}