{"type": "func", "start": 6442503952, "end": 6442504171, "name": "FMOD::ChannelControl::set3DLevel", "pseudocode": "// \n// FMOD::ChannelControl::set3DLevel from 0x18000cf10 to 0x18000cfeb (219 bytes)\n// \n// 4 xrefs:\n// > FMOD_ChannelGroup_Set3DLevel @ 0x1800c5249\n// > FMOD_Channel_Set3DLevel @ 0x1800c5859\n// > <???> @ 0x180194348\n// > <???> @ 0x1801f69e4\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::set3DLevel(__int64 a1)\n{\n  int v1; // edi\n  unsigned int v2; // ebx\n  __int64 v4; // [rsp+30h] [rbp-138h] BYREF\n  __int64 v5; // [rsp+38h] [rbp-130h] BYREF\n  _BYTE v6[256]; // [rsp+40h] [rbp-128h] BYREF\n\n  v4 = 0;\n  v1 = a1;\n  v2 = sub_180012360(a1, &v5, &v4);\n  if ( (v2 || (v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 440LL))(v5)) != 0)\n    && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    sub_1800F2F20(v6, 256);\n    sub_1800B20E0(v2, 4, v1, (unsigned int)\"ChannelControl::set3DLevel\", (__int64)v6);\n  }\n  if ( v4 )\n    sub_180102320();\n  return v2;\n}", "assembly": "; \n; FMOD::ChannelControl::set3DLevel from 0x18000cf10 to 0x18000cfeb (219 bytes)\n; \n; 4 xrefs:\n; > FMOD_ChannelGroup_Set3DLevel @ 0x1800c5249\n; > FMOD_Channel_Set3DLevel @ 0x1800c5859\n; > <???> @ 0x180194348\n; > <???> @ 0x1801f69e4\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     [rsp+arg_10], rbx                                              ; +0x0, 0x18000cf10\npush    rdi                                                            ; +0x5, 0x18000cf15\nsub     rsp, 160h                                                      ; +0x6, 0x18000cf16\nmovaps  [rsp+168h+var_18], xmm6                                        ; +0xd, 0x18000cf1d\nmov     rax, cs:__security_cookie                                      ; +0x15, 0x18000cf25\nxor     rax, rsp                                                       ; +0x1c, 0x18000cf2c\nmov     [rsp+168h+var_28], rax                                         ; +0x1f, 0x18000cf2f\nlea     r8, [rsp+168h+var_138]                                         ; +0x27, 0x18000cf37\nmov     [rsp+168h+var_138], 0                                          ; +0x2c, 0x18000cf3c\nlea     rdx, [rsp+168h+var_130]                                        ; +0x35, 0x18000cf45\nmovaps  xmm6, xmm1                                                     ; +0x3a, 0x18000cf4a\nmov     rdi, rcx                                                       ; +0x3d, 0x18000cf4d\ncall    sub_180012360                                                  ; +0x40, 0x18000cf50\nmov     ebx, eax                                                       ; +0x45, 0x18000cf55\ntest    eax, eax                                                       ; +0x47, 0x18000cf57\njnz     short loc_18000CF72                                            ; +0x49, 0x18000cf59\nmov     rcx, [rsp+168h+var_130]                                        ; +0x4b, 0x18000cf5b\nmovaps  xmm1, xmm6                                                     ; +0x50, 0x18000cf60\nmov     rax, [rcx]                                                     ; +0x53, 0x18000cf63\ncall    qword ptr [rax+1B8h]                                           ; +0x56, 0x18000cf66\nmov     ebx, eax                                                       ; +0x5c, 0x18000cf6c\ntest    eax, eax                                                       ; +0x5e, 0x18000cf6e\njz      short loc_18000CFB1                                            ; +0x60, 0x18000cf70\nmov     rax, cs:off_1801AED20                                          ; +0x62, 0x18000cf72\ntest    byte ptr [rax+10h], 80h                                        ; +0x69, 0x18000cf79\njz      short loc_18000CFB1                                            ; +0x6d, 0x18000cf7d\nmovaps  xmm2, xmm6                                                     ; +0x6f, 0x18000cf7f\nlea     rcx, [rsp+168h+var_128]                                        ; +0x72, 0x18000cf82\nmov     edx, 100h                                                      ; +0x77, 0x18000cf87\ncall    sub_1800F2F20                                                  ; +0x7c, 0x18000cf8c\nlea     rax, [rsp+168h+var_128]                                        ; +0x81, 0x18000cf91\nmov     r8, rdi                                                        ; +0x86, 0x18000cf96\nlea     r9, aChannelcontrol_38; \"ChannelControl::set3DLevel\"           ; +0x89, 0x18000cf99\nmov     [rsp+168h+var_148], rax                                        ; +0x90, 0x18000cfa0\nmov     edx, 4                                                         ; +0x95, 0x18000cfa5\nmov     ecx, ebx                                                       ; +0x9a, 0x18000cfaa\ncall    sub_1800B20E0                                                  ; +0x9c, 0x18000cfac\nmov     rcx, [rsp+168h+var_138]                                        ; +0xa1, 0x18000cfb1\ntest    rcx, rcx                                                       ; +0xa6, 0x18000cfb6\njz      short loc_18000CFC0                                            ; +0xa9, 0x18000cfb9\ncall    sub_180102320                                                  ; +0xab, 0x18000cfbb\nmov     eax, ebx                                                       ; +0xb0, 0x18000cfc0\nmov     rcx, [rsp+168h+var_28]                                         ; +0xb2, 0x18000cfc2\nxor     rcx, rsp; StackCookie                                          ; +0xba, 0x18000cfca\ncall    __security_check_cookie                                        ; +0xbd, 0x18000cfcd\nmov     rbx, [rsp+168h+arg_10]                                         ; +0xc2, 0x18000cfd2\nmovaps  xmm6, [rsp+168h+var_18]                                        ; +0xca, 0x18000cfda\nadd     rsp, 160h                                                      ; +0xd2, 0x18000cfe2\npop     rdi                                                            ; +0xd9, 0x18000cfe9\nretn                                                                   ; +0xda, 0x18000cfea", "xrefs": ["FMOD_ChannelGroup_Set3DLevel @ 0x1800c5249", "FMOD_Channel_Set3DLevel @ 0x1800c5859", "<???> @ 0x180194348", "<???> @ 0x1801f69e4"], "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"}