{"type": "func", "start": 6442501728, "end": 6442502045, "name": "FMOD::ChannelControl::removeFadePoints", "pseudocode": "// \n// FMOD::ChannelControl::removeFadePoints from 0x18000c660 to 0x18000c79d (317 bytes)\n// \n// 6 xrefs:\n// > FMOD_ChannelGroup_RemoveFadePoints @ 0x1800c51c9\n// > FMOD_Channel_RemoveFadePoints @ 0x1800c57d9\n// > <???> @ 0x18017e13c\n// > <???> @ 0x18017e170\n// > <???> @ 0x180194348\n// > <???> @ 0x1801f68a0\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::removeFadePoints(__int64 a1, __int64 a2, __int64 a3)\n{\n  int v5; // r14d\n  unsigned int v6; // esi\n  int v7; // ebx\n  int v8; // eax\n  __int64 v10; // [rsp+30h] [rbp-148h] BYREF\n  __int64 v11; // [rsp+38h] [rbp-140h] BYREF\n  _BYTE v12[256]; // [rsp+40h] [rbp-138h] BYREF\n\n  v10 = 0;\n  v5 = a1;\n  v6 = sub_180012360(a1, &v11, &v10);\n  if ( v6\n    || (a2 <<= 20,\n        a3 <<= 20,\n        (v6 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v11 + 256LL))(v11, a2, a3)) != 0) )\n  {\n    if ( *((char *)off_1801AED20 + 16) < 0 )\n    {\n      v7 = sub_1800F3310(v12, 256, a2);\n      v8 = sub_1800F2F70(&v12[v7]);\n      sub_1800F3310(&v12[v8 + v7], (unsigned int)(256 - (v8 + v7)), a3);\n      sub_1800B20E0(v6, 4, v5, (unsigned int)\"ChannelControl::removeFadePoints\", (__int64)v12);\n    }\n  }\n  if ( v10 )\n    sub_180102320();\n  return v6;\n}", "assembly": "; \n; FMOD::ChannelControl::removeFadePoints from 0x18000c660 to 0x18000c79d (317 bytes)\n; \n; 6 xrefs:\n; > FMOD_ChannelGroup_RemoveFadePoints @ 0x1800c51c9\n; > FMOD_Channel_RemoveFadePoints @ 0x1800c57d9\n; > <???> @ 0x18017e13c\n; > <???> @ 0x18017e170\n; > <???> @ 0x180194348\n; > <???> @ 0x1801f68a0\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     r11, rsp                                                       ; +0x0, 0x18000c660\npush    rsi                                                            ; +0x3, 0x18000c663\nsub     rsp, 170h                                                      ; +0x4, 0x18000c664\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x18000c66b\nxor     rax, rsp                                                       ; +0x12, 0x18000c672\nmov     [rsp+178h+var_38], rax                                         ; +0x15, 0x18000c675\nmov     [r11-10h], rbx                                                 ; +0x1d, 0x18000c67d\nmov     rbx, rdx                                                       ; +0x21, 0x18000c681\nmov     [r11-18h], rbp                                                 ; +0x24, 0x18000c684\nlea     rdx, [rsp+178h+var_140]                                        ; +0x28, 0x18000c688\nmov     rbp, r8                                                        ; +0x2d, 0x18000c68d\nmov     [r11-28h], r14                                                 ; +0x30, 0x18000c690\nlea     r8, [rsp+178h+var_148]                                         ; +0x34, 0x18000c694\nmov     [rsp+178h+var_148], 0                                          ; +0x39, 0x18000c699\nmov     r14, rcx                                                       ; +0x42, 0x18000c6a2\ncall    sub_180012360                                                  ; +0x45, 0x18000c6a5\nmov     esi, eax                                                       ; +0x4a, 0x18000c6aa\ntest    eax, eax                                                       ; +0x4c, 0x18000c6ac\njnz     short loc_18000C6D6                                            ; +0x4e, 0x18000c6ae\nmov     rcx, [rsp+178h+var_140]                                        ; +0x50, 0x18000c6b0\nshl     rbx, 14h                                                       ; +0x55, 0x18000c6b5\nshl     rbp, 14h                                                       ; +0x59, 0x18000c6b9\nmov     rdx, rbx                                                       ; +0x5d, 0x18000c6bd\nmov     r8, rbp                                                        ; +0x60, 0x18000c6c0\nmov     rax, [rcx]                                                     ; +0x63, 0x18000c6c3\ncall    qword ptr [rax+100h]                                           ; +0x66, 0x18000c6c6\nmov     esi, eax                                                       ; +0x6c, 0x18000c6cc\ntest    eax, eax                                                       ; +0x6e, 0x18000c6ce\njz      loc_18000C75B                                                  ; +0x70, 0x18000c6d0\nmov     rax, cs:off_1801AED20                                          ; +0x76, 0x18000c6d6\ntest    byte ptr [rax+10h], 80h                                        ; +0x7d, 0x18000c6dd\njz      short loc_18000C75B                                            ; +0x81, 0x18000c6e1\nmov     [rsp+178h+var_20], rdi                                         ; +0x83, 0x18000c6e3\nlea     rcx, [rsp+178h+var_138]                                        ; +0x8b, 0x18000c6eb\nmov     edi, 100h                                                      ; +0x90, 0x18000c6f0\nmov     r8, rbx                                                        ; +0x95, 0x18000c6f5\nmov     edx, edi                                                       ; +0x98, 0x18000c6f8\ncall    sub_1800F3310                                                  ; +0x9a, 0x18000c6fa\nmovsxd  rbx, eax                                                       ; +0x9f, 0x18000c6ff\nlea     rcx, [rsp+178h+var_138]                                        ; +0xa2, 0x18000c702\nmov     edx, edi                                                       ; +0xa7, 0x18000c707\nlea     r8, asc_18014572C; \", \"                                        ; +0xa9, 0x18000c709\nsub     edx, ebx                                                       ; +0xb0, 0x18000c710\nadd     rcx, rbx; void *                                               ; +0xb2, 0x18000c712\ncall    sub_1800F2F70                                                  ; +0xb5, 0x18000c715\nadd     ebx, eax                                                       ; +0xba, 0x18000c71a\nlea     rcx, [rsp+178h+var_138]                                        ; +0xbc, 0x18000c71c\nmovsxd  rax, ebx                                                       ; +0xc1, 0x18000c721\nsub     edi, ebx                                                       ; +0xc4, 0x18000c724\nadd     rcx, rax                                                       ; +0xc6, 0x18000c726\nmov     edx, edi                                                       ; +0xc9, 0x18000c729\nmov     r8, rbp                                                        ; +0xcb, 0x18000c72b\ncall    sub_1800F3310                                                  ; +0xce, 0x18000c72e\nlea     rax, [rsp+178h+var_138]                                        ; +0xd3, 0x18000c733\nmov     r8, r14                                                        ; +0xd8, 0x18000c738\nlea     r9, aChannelcontrol_31; \"ChannelControl::removeFadePoints\"     ; +0xdb, 0x18000c73b\nmov     [rsp+178h+var_158], rax                                        ; +0xe2, 0x18000c742\nmov     edx, 4                                                         ; +0xe7, 0x18000c747\nmov     ecx, esi                                                       ; +0xec, 0x18000c74c\ncall    sub_1800B20E0                                                  ; +0xee, 0x18000c74e\nmov     rdi, [rsp+178h+var_20]                                         ; +0xf3, 0x18000c753\nmov     rcx, [rsp+178h+var_148]                                        ; +0xfb, 0x18000c75b\nmov     r14, [rsp+178h+var_28]                                         ; +0x100, 0x18000c760\nmov     rbp, [rsp+178h+var_18]                                         ; +0x108, 0x18000c768\nmov     rbx, [rsp+178h+var_10]                                         ; +0x110, 0x18000c770\ntest    rcx, rcx                                                       ; +0x118, 0x18000c778\njz      short loc_18000C782                                            ; +0x11b, 0x18000c77b\ncall    sub_180102320                                                  ; +0x11d, 0x18000c77d\nmov     eax, esi                                                       ; +0x122, 0x18000c782\nmov     rcx, [rsp+178h+var_38]                                         ; +0x124, 0x18000c784\nxor     rcx, rsp; StackCookie                                          ; +0x12c, 0x18000c78c\ncall    __security_check_cookie                                        ; +0x12f, 0x18000c78f\nadd     rsp, 170h                                                      ; +0x134, 0x18000c794\npop     rsi                                                            ; +0x13b, 0x18000c79b\nretn                                                                   ; +0x13c, 0x18000c79c", "xrefs": ["FMOD_ChannelGroup_RemoveFadePoints @ 0x1800c51c9", "FMOD_Channel_RemoveFadePoints @ 0x1800c57d9", "<???> @ 0x18017e13c", "<???> @ 0x18017e170", "<???> @ 0x180194348", "<???> @ 0x1801f68a0"], "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"}