{"type": "func", "start": 6442504512, "end": 6442504843, "name": "FMOD::ChannelControl::set3DOcclusion", "pseudocode": "// \n// FMOD::ChannelControl::set3DOcclusion from 0x18000d140 to 0x18000d28b (331 bytes)\n// \n// 6 xrefs:\n// > FMOD_ChannelGroup_Set3DOcclusion @ 0x1800c5269\n// > FMOD_Channel_Set3DOcclusion @ 0x1800c5879\n// > <???> @ 0x18017e6ec\n// > <???> @ 0x18017e724\n// > <???> @ 0x180194348\n// > <???> @ 0x1801f6a2c\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::set3DOcclusion(__int64 a1)\n{\n  int v1; // ebp\n  unsigned int v2; // esi\n  int v3; // ebx\n  int v4; // eax\n  __int64 v6; // [rsp+30h] [rbp-158h] BYREF\n  __int64 v7; // [rsp+38h] [rbp-150h] BYREF\n  _BYTE v8[256]; // [rsp+40h] [rbp-148h] BYREF\n\n  v6 = 0;\n  v1 = a1;\n  v2 = sub_180012360(a1, &v7, &v6);\n  if ( (v2 || (v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 400LL))(v7)) != 0)\n    && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v3 = sub_1800F2F20(v8, 256);\n    v4 = sub_1800F2F70(&v8[v3]);\n    sub_1800F2F20(&v8[v4 + v3], (unsigned int)(256 - (v4 + v3)));\n    sub_1800B20E0(v2, 4, v1, (unsigned int)\"ChannelControl::set3DOcclusion\", (__int64)v8);\n  }\n  if ( v6 )\n    sub_180102320();\n  return v2;\n}", "assembly": "; \n; FMOD::ChannelControl::set3DOcclusion from 0x18000d140 to 0x18000d28b (331 bytes)\n; \n; 6 xrefs:\n; > FMOD_ChannelGroup_Set3DOcclusion @ 0x1800c5269\n; > FMOD_Channel_Set3DOcclusion @ 0x1800c5879\n; > <???> @ 0x18017e6ec\n; > <???> @ 0x18017e724\n; > <???> @ 0x180194348\n; > <???> @ 0x1801f6a2c\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, 0x18000d140\npush    rsi                                                            ; +0x3, 0x18000d143\nsub     rsp, 180h                                                      ; +0x4, 0x18000d144\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x18000d14b\nxor     rax, rsp                                                       ; +0x12, 0x18000d152\nmov     [rsp+188h+var_48], rax                                         ; +0x15, 0x18000d155\nmov     [r11-10h], rbp                                                 ; +0x1d, 0x18000d15d\nlea     r8, [rsp+188h+var_158]                                         ; +0x21, 0x18000d161\nmovaps  xmmword ptr [r11-28h], xmm6                                    ; +0x26, 0x18000d166\nlea     rdx, [rsp+188h+var_150]                                        ; +0x2b, 0x18000d16b\nmovaps  xmmword ptr [r11-38h], xmm7                                    ; +0x30, 0x18000d170\nmovaps  xmm6, xmm1                                                     ; +0x35, 0x18000d175\nmovaps  xmm7, xmm2                                                     ; +0x38, 0x18000d178\nmov     [rsp+188h+var_158], 0                                          ; +0x3b, 0x18000d17b\nmov     rbp, rcx                                                       ; +0x44, 0x18000d184\ncall    sub_180012360                                                  ; +0x47, 0x18000d187\nmov     esi, eax                                                       ; +0x4c, 0x18000d18c\ntest    eax, eax                                                       ; +0x4e, 0x18000d18e\njnz     short loc_18000D1B0                                            ; +0x50, 0x18000d190\nmov     rcx, [rsp+188h+var_150]                                        ; +0x52, 0x18000d192\nmovaps  xmm2, xmm7                                                     ; +0x57, 0x18000d197\nmovaps  xmm1, xmm6                                                     ; +0x5a, 0x18000d19a\nmov     rax, [rcx]                                                     ; +0x5d, 0x18000d19d\ncall    qword ptr [rax+190h]                                           ; +0x60, 0x18000d1a0\nmov     esi, eax                                                       ; +0x66, 0x18000d1a6\ntest    eax, eax                                                       ; +0x68, 0x18000d1a8\njz      loc_18000D249                                                  ; +0x6a, 0x18000d1aa\nmov     rax, cs:off_1801AED20                                          ; +0x70, 0x18000d1b0\ntest    byte ptr [rax+10h], 80h                                        ; +0x77, 0x18000d1b7\njz      loc_18000D249                                                  ; +0x7b, 0x18000d1bb\nmov     [rsp+188h+arg_18], rbx                                         ; +0x81, 0x18000d1c1\nlea     rcx, [rsp+188h+var_148]                                        ; +0x89, 0x18000d1c9\nmov     [rsp+188h+var_18], rdi                                         ; +0x8e, 0x18000d1ce\nmovaps  xmm2, xmm6                                                     ; +0x96, 0x18000d1d6\nmov     edi, 100h                                                      ; +0x99, 0x18000d1d9\nmov     edx, edi                                                       ; +0x9e, 0x18000d1de\ncall    sub_1800F2F20                                                  ; +0xa0, 0x18000d1e0\nmovsxd  rbx, eax                                                       ; +0xa5, 0x18000d1e5\nlea     rcx, [rsp+188h+var_148]                                        ; +0xa8, 0x18000d1e8\nmov     edx, edi                                                       ; +0xad, 0x18000d1ed\nlea     r8, asc_18014572C; \", \"                                        ; +0xaf, 0x18000d1ef\nsub     edx, ebx                                                       ; +0xb6, 0x18000d1f6\nadd     rcx, rbx; void *                                               ; +0xb8, 0x18000d1f8\ncall    sub_1800F2F70                                                  ; +0xbb, 0x18000d1fb\nadd     ebx, eax                                                       ; +0xc0, 0x18000d200\nlea     rcx, [rsp+188h+var_148]                                        ; +0xc2, 0x18000d202\nmovsxd  rax, ebx                                                       ; +0xc7, 0x18000d207\nsub     edi, ebx                                                       ; +0xca, 0x18000d20a\nadd     rcx, rax                                                       ; +0xcc, 0x18000d20c\nmov     edx, edi                                                       ; +0xcf, 0x18000d20f\nmovaps  xmm2, xmm7                                                     ; +0xd1, 0x18000d211\ncall    sub_1800F2F20                                                  ; +0xd4, 0x18000d214\nlea     rax, [rsp+188h+var_148]                                        ; +0xd9, 0x18000d219\nmov     r8, rbp                                                        ; +0xde, 0x18000d21e\nlea     r9, aChannelcontrol_40; \"ChannelControl::set3DOcclusion\"       ; +0xe1, 0x18000d221\nmov     [rsp+188h+var_168], rax                                        ; +0xe8, 0x18000d228\nmov     edx, 4                                                         ; +0xed, 0x18000d22d\nmov     ecx, esi                                                       ; +0xf2, 0x18000d232\ncall    sub_1800B20E0                                                  ; +0xf4, 0x18000d234\nmov     rdi, [rsp+188h+var_18]                                         ; +0xf9, 0x18000d239\nmov     rbx, [rsp+188h+arg_18]                                         ; +0x101, 0x18000d241\nmov     rcx, [rsp+188h+var_158]                                        ; +0x109, 0x18000d249\nmovaps  xmm7, [rsp+188h+var_38]                                        ; +0x10e, 0x18000d24e\nmovaps  xmm6, [rsp+188h+var_28]                                        ; +0x116, 0x18000d256\nmov     rbp, [rsp+188h+var_10]                                         ; +0x11e, 0x18000d25e\ntest    rcx, rcx                                                       ; +0x126, 0x18000d266\njz      short loc_18000D270                                            ; +0x129, 0x18000d269\ncall    sub_180102320                                                  ; +0x12b, 0x18000d26b\nmov     eax, esi                                                       ; +0x130, 0x18000d270\nmov     rcx, [rsp+188h+var_48]                                         ; +0x132, 0x18000d272\nxor     rcx, rsp; StackCookie                                          ; +0x13a, 0x18000d27a\ncall    __security_check_cookie                                        ; +0x13d, 0x18000d27d\nadd     rsp, 180h                                                      ; +0x142, 0x18000d282\npop     rsi                                                            ; +0x149, 0x18000d289\nretn                                                                   ; +0x14a, 0x18000d28a", "xrefs": ["FMOD_ChannelGroup_Set3DOcclusion @ 0x1800c5269", "FMOD_Channel_Set3DOcclusion @ 0x1800c5879", "<???> @ 0x18017e6ec", "<???> @ 0x18017e724", "<???> @ 0x180194348", "<???> @ 0x1801f6a2c"], "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"}