{"type": "func", "start": 6442503008, "end": 6442503317, "name": "FMOD::ChannelControl::set3DCustomRolloff", "pseudocode": "// \n// FMOD::ChannelControl::set3DCustomRolloff from 0x18000cb60 to 0x18000cc95 (309 bytes)\n// \n// 6 xrefs:\n// > FMOD_ChannelGroup_Set3DCustomRolloff @ 0x1800c5209\n// > FMOD_Channel_Set3DCustomRolloff @ 0x1800c5819\n// > <???> @ 0x18017e624\n// > <???> @ 0x18017e658\n// > <???> @ 0x180194348\n// > <???> @ 0x1801f6960\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::set3DCustomRolloff(__int64 a1, __int64 a2, unsigned int 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 || (v6 = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v11 + 384LL))(v11, a2, a3)) != 0)\n    && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v7 = sub_1800F31D0(v12, 256, a2);\n    v8 = sub_1800F2F70(&v12[v7]);\n    sub_1800F2EC0(&v12[v8 + v7], (unsigned int)(256 - (v8 + v7)), a3);\n    sub_1800B20E0(v6, 4, v5, (unsigned int)\"ChannelControl::set3DCustomRolloff\", (__int64)v12);\n  }\n  if ( v10 )\n    sub_180102320();\n  return v6;\n}", "assembly": "; \n; FMOD::ChannelControl::set3DCustomRolloff from 0x18000cb60 to 0x18000cc95 (309 bytes)\n; \n; 6 xrefs:\n; > FMOD_ChannelGroup_Set3DCustomRolloff @ 0x1800c5209\n; > FMOD_Channel_Set3DCustomRolloff @ 0x1800c5819\n; > <???> @ 0x18017e624\n; > <???> @ 0x18017e658\n; > <???> @ 0x180194348\n; > <???> @ 0x1801f6960\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, 0x18000cb60\npush    rsi                                                            ; +0x3, 0x18000cb63\nsub     rsp, 170h                                                      ; +0x4, 0x18000cb64\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x18000cb6b\nxor     rax, rsp                                                       ; +0x12, 0x18000cb72\nmov     [rsp+178h+var_38], rax                                         ; +0x15, 0x18000cb75\nmov     [r11-10h], rbx                                                 ; +0x1d, 0x18000cb7d\nmov     rbx, rdx                                                       ; +0x21, 0x18000cb81\nmov     [r11-18h], rbp                                                 ; +0x24, 0x18000cb84\nlea     rdx, [rsp+178h+var_140]                                        ; +0x28, 0x18000cb88\nmov     ebp, r8d                                                       ; +0x2d, 0x18000cb8d\nmov     [r11-28h], r14                                                 ; +0x30, 0x18000cb90\nlea     r8, [rsp+178h+var_148]                                         ; +0x34, 0x18000cb94\nmov     [rsp+178h+var_148], 0                                          ; +0x39, 0x18000cb99\nmov     r14, rcx                                                       ; +0x42, 0x18000cba2\ncall    sub_180012360                                                  ; +0x45, 0x18000cba5\nmov     esi, eax                                                       ; +0x4a, 0x18000cbaa\ntest    eax, eax                                                       ; +0x4c, 0x18000cbac\njnz     short loc_18000CBCE                                            ; +0x4e, 0x18000cbae\nmov     rcx, [rsp+178h+var_140]                                        ; +0x50, 0x18000cbb0\nmov     r8d, ebp                                                       ; +0x55, 0x18000cbb5\nmov     rdx, rbx                                                       ; +0x58, 0x18000cbb8\nmov     rax, [rcx]                                                     ; +0x5b, 0x18000cbbb\ncall    qword ptr [rax+180h]                                           ; +0x5e, 0x18000cbbe\nmov     esi, eax                                                       ; +0x64, 0x18000cbc4\ntest    eax, eax                                                       ; +0x66, 0x18000cbc6\njz      loc_18000CC53                                                  ; +0x68, 0x18000cbc8\nmov     rax, cs:off_1801AED20                                          ; +0x6e, 0x18000cbce\ntest    byte ptr [rax+10h], 80h                                        ; +0x75, 0x18000cbd5\njz      short loc_18000CC53                                            ; +0x79, 0x18000cbd9\nmov     [rsp+178h+var_20], rdi                                         ; +0x7b, 0x18000cbdb\nlea     rcx, [rsp+178h+var_138]                                        ; +0x83, 0x18000cbe3\nmov     edi, 100h                                                      ; +0x88, 0x18000cbe8\nmov     r8, rbx                                                        ; +0x8d, 0x18000cbed\nmov     edx, edi                                                       ; +0x90, 0x18000cbf0\ncall    sub_1800F31D0                                                  ; +0x92, 0x18000cbf2\nmovsxd  rbx, eax                                                       ; +0x97, 0x18000cbf7\nlea     rcx, [rsp+178h+var_138]                                        ; +0x9a, 0x18000cbfa\nmov     edx, edi                                                       ; +0x9f, 0x18000cbff\nlea     r8, asc_18014572C; \", \"                                        ; +0xa1, 0x18000cc01\nsub     edx, ebx                                                       ; +0xa8, 0x18000cc08\nadd     rcx, rbx; void *                                               ; +0xaa, 0x18000cc0a\ncall    sub_1800F2F70                                                  ; +0xad, 0x18000cc0d\nadd     ebx, eax                                                       ; +0xb2, 0x18000cc12\nlea     rcx, [rsp+178h+var_138]                                        ; +0xb4, 0x18000cc14\nmovsxd  rax, ebx                                                       ; +0xb9, 0x18000cc19\nsub     edi, ebx                                                       ; +0xbc, 0x18000cc1c\nadd     rcx, rax                                                       ; +0xbe, 0x18000cc1e\nmov     edx, edi                                                       ; +0xc1, 0x18000cc21\nmov     r8d, ebp                                                       ; +0xc3, 0x18000cc23\ncall    sub_1800F2EC0                                                  ; +0xc6, 0x18000cc26\nlea     rax, [rsp+178h+var_138]                                        ; +0xcb, 0x18000cc2b\nmov     r8, r14                                                        ; +0xd0, 0x18000cc30\nlea     r9, aChannelcontrol_35; \"ChannelControl::set3DCustomRolloff\"   ; +0xd3, 0x18000cc33\nmov     [rsp+178h+var_158], rax                                        ; +0xda, 0x18000cc3a\nmov     edx, 4                                                         ; +0xdf, 0x18000cc3f\nmov     ecx, esi                                                       ; +0xe4, 0x18000cc44\ncall    sub_1800B20E0                                                  ; +0xe6, 0x18000cc46\nmov     rdi, [rsp+178h+var_20]                                         ; +0xeb, 0x18000cc4b\nmov     rcx, [rsp+178h+var_148]                                        ; +0xf3, 0x18000cc53\nmov     r14, [rsp+178h+var_28]                                         ; +0xf8, 0x18000cc58\nmov     rbp, [rsp+178h+var_18]                                         ; +0x100, 0x18000cc60\nmov     rbx, [rsp+178h+var_10]                                         ; +0x108, 0x18000cc68\ntest    rcx, rcx                                                       ; +0x110, 0x18000cc70\njz      short loc_18000CC7A                                            ; +0x113, 0x18000cc73\ncall    sub_180102320                                                  ; +0x115, 0x18000cc75\nmov     eax, esi                                                       ; +0x11a, 0x18000cc7a\nmov     rcx, [rsp+178h+var_38]                                         ; +0x11c, 0x18000cc7c\nxor     rcx, rsp; StackCookie                                          ; +0x124, 0x18000cc84\ncall    __security_check_cookie                                        ; +0x127, 0x18000cc87\nadd     rsp, 170h                                                      ; +0x12c, 0x18000cc8c\npop     rsi                                                            ; +0x133, 0x18000cc93\nretn                                                                   ; +0x134, 0x18000cc94", "xrefs": ["FMOD_ChannelGroup_Set3DCustomRolloff @ 0x1800c5209", "FMOD_Channel_Set3DCustomRolloff @ 0x1800c5819", "<???> @ 0x18017e624", "<???> @ 0x18017e658", "<???> @ 0x180194348", "<???> @ 0x1801f6960"], "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"}