{"type": "func", "start": 6442494176, "end": 6442494485, "name": "FMOD::ChannelControl::get3DCustomRolloff", "pseudocode": "// \n// FMOD::ChannelControl::get3DCustomRolloff from 0x18000a8e0 to 0x18000aa15 (309 bytes)\n// \n// 6 xrefs:\n// > FMOD_ChannelGroup_Get3DCustomRolloff @ 0x1800c4e89\n// > FMOD_Channel_Get3DCustomRolloff @ 0x1800c5449\n// > <???> @ 0x18017e688\n// > <???> @ 0x18017e6bc\n// > <???> @ 0x180194348\n// > <???> @ 0x1801f6594\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::get3DCustomRolloff(__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 || (v6 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v11 + 392LL))(v11, a2, a3)) != 0)\n    && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v7 = sub_1800F3230(v12, 256, a2);\n    v8 = sub_1800F2F70(&v12[v7]);\n    sub_1800F3020(&v12[v8 + v7], (unsigned int)(256 - (v8 + v7)), a3);\n    sub_1800B20E0(v6, 4, v5, (unsigned int)\"ChannelControl::get3DCustomRolloff\", (__int64)v12);\n  }\n  if ( v10 )\n    sub_180102320();\n  return v6;\n}", "assembly": "; \n; FMOD::ChannelControl::get3DCustomRolloff from 0x18000a8e0 to 0x18000aa15 (309 bytes)\n; \n; 6 xrefs:\n; > FMOD_ChannelGroup_Get3DCustomRolloff @ 0x1800c4e89\n; > FMOD_Channel_Get3DCustomRolloff @ 0x1800c5449\n; > <???> @ 0x18017e688\n; > <???> @ 0x18017e6bc\n; > <???> @ 0x180194348\n; > <???> @ 0x1801f6594\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, 0x18000a8e0\npush    rsi                                                            ; +0x3, 0x18000a8e3\nsub     rsp, 170h                                                      ; +0x4, 0x18000a8e4\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x18000a8eb\nxor     rax, rsp                                                       ; +0x12, 0x18000a8f2\nmov     [rsp+178h+var_38], rax                                         ; +0x15, 0x18000a8f5\nmov     [r11-10h], rbx                                                 ; +0x1d, 0x18000a8fd\nmov     rbx, rdx                                                       ; +0x21, 0x18000a901\nmov     [r11-18h], rbp                                                 ; +0x24, 0x18000a904\nlea     rdx, [rsp+178h+var_140]                                        ; +0x28, 0x18000a908\nmov     rbp, r8                                                        ; +0x2d, 0x18000a90d\nmov     [r11-28h], r14                                                 ; +0x30, 0x18000a910\nlea     r8, [rsp+178h+var_148]                                         ; +0x34, 0x18000a914\nmov     [rsp+178h+var_148], 0                                          ; +0x39, 0x18000a919\nmov     r14, rcx                                                       ; +0x42, 0x18000a922\ncall    sub_180012360                                                  ; +0x45, 0x18000a925\nmov     esi, eax                                                       ; +0x4a, 0x18000a92a\ntest    eax, eax                                                       ; +0x4c, 0x18000a92c\njnz     short loc_18000A94E                                            ; +0x4e, 0x18000a92e\nmov     rcx, [rsp+178h+var_140]                                        ; +0x50, 0x18000a930\nmov     r8, rbp                                                        ; +0x55, 0x18000a935\nmov     rdx, rbx                                                       ; +0x58, 0x18000a938\nmov     rax, [rcx]                                                     ; +0x5b, 0x18000a93b\ncall    qword ptr [rax+188h]                                           ; +0x5e, 0x18000a93e\nmov     esi, eax                                                       ; +0x64, 0x18000a944\ntest    eax, eax                                                       ; +0x66, 0x18000a946\njz      loc_18000A9D3                                                  ; +0x68, 0x18000a948\nmov     rax, cs:off_1801AED20                                          ; +0x6e, 0x18000a94e\ntest    byte ptr [rax+10h], 80h                                        ; +0x75, 0x18000a955\njz      short loc_18000A9D3                                            ; +0x79, 0x18000a959\nmov     [rsp+178h+var_20], rdi                                         ; +0x7b, 0x18000a95b\nlea     rcx, [rsp+178h+var_138]                                        ; +0x83, 0x18000a963\nmov     edi, 100h                                                      ; +0x88, 0x18000a968\nmov     r8, rbx                                                        ; +0x8d, 0x18000a96d\nmov     edx, edi                                                       ; +0x90, 0x18000a970\ncall    sub_1800F3230                                                  ; +0x92, 0x18000a972\nmovsxd  rbx, eax                                                       ; +0x97, 0x18000a977\nlea     rcx, [rsp+178h+var_138]                                        ; +0x9a, 0x18000a97a\nmov     edx, edi                                                       ; +0x9f, 0x18000a97f\nlea     r8, asc_18014572C; \", \"                                        ; +0xa1, 0x18000a981\nsub     edx, ebx                                                       ; +0xa8, 0x18000a988\nadd     rcx, rbx; void *                                               ; +0xaa, 0x18000a98a\ncall    sub_1800F2F70                                                  ; +0xad, 0x18000a98d\nadd     ebx, eax                                                       ; +0xb2, 0x18000a992\nlea     rcx, [rsp+178h+var_138]                                        ; +0xb4, 0x18000a994\nmovsxd  rax, ebx                                                       ; +0xb9, 0x18000a999\nsub     edi, ebx                                                       ; +0xbc, 0x18000a99c\nadd     rcx, rax                                                       ; +0xbe, 0x18000a99e\nmov     edx, edi                                                       ; +0xc1, 0x18000a9a1\nmov     r8, rbp                                                        ; +0xc3, 0x18000a9a3\ncall    sub_1800F3020                                                  ; +0xc6, 0x18000a9a6\nlea     rax, [rsp+178h+var_138]                                        ; +0xcb, 0x18000a9ab\nmov     r8, r14                                                        ; +0xd0, 0x18000a9b0\nlea     r9, aChannelcontrol_4; \"ChannelControl::get3DCustomRolloff\"    ; +0xd3, 0x18000a9b3\nmov     [rsp+178h+var_158], rax                                        ; +0xda, 0x18000a9ba\nmov     edx, 4                                                         ; +0xdf, 0x18000a9bf\nmov     ecx, esi                                                       ; +0xe4, 0x18000a9c4\ncall    sub_1800B20E0                                                  ; +0xe6, 0x18000a9c6\nmov     rdi, [rsp+178h+var_20]                                         ; +0xeb, 0x18000a9cb\nmov     rcx, [rsp+178h+var_148]                                        ; +0xf3, 0x18000a9d3\nmov     r14, [rsp+178h+var_28]                                         ; +0xf8, 0x18000a9d8\nmov     rbp, [rsp+178h+var_18]                                         ; +0x100, 0x18000a9e0\nmov     rbx, [rsp+178h+var_10]                                         ; +0x108, 0x18000a9e8\ntest    rcx, rcx                                                       ; +0x110, 0x18000a9f0\njz      short loc_18000A9FA                                            ; +0x113, 0x18000a9f3\ncall    sub_180102320                                                  ; +0x115, 0x18000a9f5\nmov     eax, esi                                                       ; +0x11a, 0x18000a9fa\nmov     rcx, [rsp+178h+var_38]                                         ; +0x11c, 0x18000a9fc\nxor     rcx, rsp; StackCookie                                          ; +0x124, 0x18000aa04\ncall    __security_check_cookie                                        ; +0x127, 0x18000aa07\nadd     rsp, 170h                                                      ; +0x12c, 0x18000aa0c\npop     rsi                                                            ; +0x133, 0x18000aa13\nretn                                                                   ; +0x134, 0x18000aa14", "xrefs": ["FMOD_ChannelGroup_Get3DCustomRolloff @ 0x1800c4e89", "FMOD_Channel_Get3DCustomRolloff @ 0x1800c5449", "<???> @ 0x18017e688", "<???> @ 0x18017e6bc", "<???> @ 0x180194348", "<???> @ 0x1801f6594"], "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"}