{"type": "func", "start": 6442502048, "end": 6442502357, "name": "FMOD::ChannelControl::set3DAttributes", "pseudocode": "// \n// FMOD::ChannelControl::set3DAttributes from 0x18000c7a0 to 0x18000c8d5 (309 bytes)\n// \n// 6 xrefs:\n// > FMOD_ChannelGroup_Set3DAttributes @ 0x1800c51d9\n// > FMOD_Channel_Set3DAttributes @ 0x1800c57e9\n// > <???> @ 0x18017e384\n// > <???> @ 0x18017e3b8\n// > <???> @ 0x180194348\n// > <???> @ 0x1801f68dc\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::set3DAttributes(__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 + 320LL))(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_1800F31D0(&v12[v8 + v7], (unsigned int)(256 - (v8 + v7)), a3);\n    sub_1800B20E0(v6, 4, v5, (unsigned int)\"ChannelControl::set3DAttributes\", (__int64)v12);\n  }\n  if ( v10 )\n    sub_180102320();\n  return v6;\n}", "assembly": "; \n; FMOD::ChannelControl::set3DAttributes from 0x18000c7a0 to 0x18000c8d5 (309 bytes)\n; \n; 6 xrefs:\n; > FMOD_ChannelGroup_Set3DAttributes @ 0x1800c51d9\n; > FMOD_Channel_Set3DAttributes @ 0x1800c57e9\n; > <???> @ 0x18017e384\n; > <???> @ 0x18017e3b8\n; > <???> @ 0x180194348\n; > <???> @ 0x1801f68dc\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, 0x18000c7a0\npush    rsi                                                            ; +0x3, 0x18000c7a3\nsub     rsp, 170h                                                      ; +0x4, 0x18000c7a4\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x18000c7ab\nxor     rax, rsp                                                       ; +0x12, 0x18000c7b2\nmov     [rsp+178h+var_38], rax                                         ; +0x15, 0x18000c7b5\nmov     [r11-10h], rbx                                                 ; +0x1d, 0x18000c7bd\nmov     rbx, rdx                                                       ; +0x21, 0x18000c7c1\nmov     [r11-18h], rbp                                                 ; +0x24, 0x18000c7c4\nlea     rdx, [rsp+178h+var_140]                                        ; +0x28, 0x18000c7c8\nmov     rbp, r8                                                        ; +0x2d, 0x18000c7cd\nmov     [r11-28h], r14                                                 ; +0x30, 0x18000c7d0\nlea     r8, [rsp+178h+var_148]                                         ; +0x34, 0x18000c7d4\nmov     [rsp+178h+var_148], 0                                          ; +0x39, 0x18000c7d9\nmov     r14, rcx                                                       ; +0x42, 0x18000c7e2\ncall    sub_180012360                                                  ; +0x45, 0x18000c7e5\nmov     esi, eax                                                       ; +0x4a, 0x18000c7ea\ntest    eax, eax                                                       ; +0x4c, 0x18000c7ec\njnz     short loc_18000C80E                                            ; +0x4e, 0x18000c7ee\nmov     rcx, [rsp+178h+var_140]                                        ; +0x50, 0x18000c7f0\nmov     r8, rbp                                                        ; +0x55, 0x18000c7f5\nmov     rdx, rbx                                                       ; +0x58, 0x18000c7f8\nmov     rax, [rcx]                                                     ; +0x5b, 0x18000c7fb\ncall    qword ptr [rax+140h]                                           ; +0x5e, 0x18000c7fe\nmov     esi, eax                                                       ; +0x64, 0x18000c804\ntest    eax, eax                                                       ; +0x66, 0x18000c806\njz      loc_18000C893                                                  ; +0x68, 0x18000c808\nmov     rax, cs:off_1801AED20                                          ; +0x6e, 0x18000c80e\ntest    byte ptr [rax+10h], 80h                                        ; +0x75, 0x18000c815\njz      short loc_18000C893                                            ; +0x79, 0x18000c819\nmov     [rsp+178h+var_20], rdi                                         ; +0x7b, 0x18000c81b\nlea     rcx, [rsp+178h+var_138]                                        ; +0x83, 0x18000c823\nmov     edi, 100h                                                      ; +0x88, 0x18000c828\nmov     r8, rbx                                                        ; +0x8d, 0x18000c82d\nmov     edx, edi                                                       ; +0x90, 0x18000c830\ncall    sub_1800F31D0                                                  ; +0x92, 0x18000c832\nmovsxd  rbx, eax                                                       ; +0x97, 0x18000c837\nlea     rcx, [rsp+178h+var_138]                                        ; +0x9a, 0x18000c83a\nmov     edx, edi                                                       ; +0x9f, 0x18000c83f\nlea     r8, asc_18014572C; \", \"                                        ; +0xa1, 0x18000c841\nsub     edx, ebx                                                       ; +0xa8, 0x18000c848\nadd     rcx, rbx; void *                                               ; +0xaa, 0x18000c84a\ncall    sub_1800F2F70                                                  ; +0xad, 0x18000c84d\nadd     ebx, eax                                                       ; +0xb2, 0x18000c852\nlea     rcx, [rsp+178h+var_138]                                        ; +0xb4, 0x18000c854\nmovsxd  rax, ebx                                                       ; +0xb9, 0x18000c859\nsub     edi, ebx                                                       ; +0xbc, 0x18000c85c\nadd     rcx, rax                                                       ; +0xbe, 0x18000c85e\nmov     edx, edi                                                       ; +0xc1, 0x18000c861\nmov     r8, rbp                                                        ; +0xc3, 0x18000c863\ncall    sub_1800F31D0                                                  ; +0xc6, 0x18000c866\nlea     rax, [rsp+178h+var_138]                                        ; +0xcb, 0x18000c86b\nmov     r8, r14                                                        ; +0xd0, 0x18000c870\nlea     r9, aChannelcontrol_32; \"ChannelControl::set3DAttributes\"      ; +0xd3, 0x18000c873\nmov     [rsp+178h+var_158], rax                                        ; +0xda, 0x18000c87a\nmov     edx, 4                                                         ; +0xdf, 0x18000c87f\nmov     ecx, esi                                                       ; +0xe4, 0x18000c884\ncall    sub_1800B20E0                                                  ; +0xe6, 0x18000c886\nmov     rdi, [rsp+178h+var_20]                                         ; +0xeb, 0x18000c88b\nmov     rcx, [rsp+178h+var_148]                                        ; +0xf3, 0x18000c893\nmov     r14, [rsp+178h+var_28]                                         ; +0xf8, 0x18000c898\nmov     rbp, [rsp+178h+var_18]                                         ; +0x100, 0x18000c8a0\nmov     rbx, [rsp+178h+var_10]                                         ; +0x108, 0x18000c8a8\ntest    rcx, rcx                                                       ; +0x110, 0x18000c8b0\njz      short loc_18000C8BA                                            ; +0x113, 0x18000c8b3\ncall    sub_180102320                                                  ; +0x115, 0x18000c8b5\nmov     eax, esi                                                       ; +0x11a, 0x18000c8ba\nmov     rcx, [rsp+178h+var_38]                                         ; +0x11c, 0x18000c8bc\nxor     rcx, rsp; StackCookie                                          ; +0x124, 0x18000c8c4\ncall    __security_check_cookie                                        ; +0x127, 0x18000c8c7\nadd     rsp, 170h                                                      ; +0x12c, 0x18000c8cc\npop     rsi                                                            ; +0x133, 0x18000c8d3\nretn                                                                   ; +0x134, 0x18000c8d4", "xrefs": ["FMOD_ChannelGroup_Set3DAttributes @ 0x1800c51d9", "FMOD_Channel_Set3DAttributes @ 0x1800c57e9", "<???> @ 0x18017e384", "<???> @ 0x18017e3b8", "<???> @ 0x180194348", "<???> @ 0x1801f68dc"], "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"}