{"type": "func", "start": 6443134896, "end": 6443135215, "name": "FMOD::Sound::get3DCustomRolloff", "pseudocode": "// \n// FMOD::Sound::get3DCustomRolloff from 0x1800a6fb0 to 0x1800a70ef (319 bytes)\n// \n// 5 xrefs:\n// > FMOD_Sound_Get3DCustomRolloff @ 0x1800c6559\n// > <???> @ 0x180187034\n// > <???> @ 0x180187044\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fb8f8\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::Sound::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 result; // rax\n  _DWORD *v10; // [rsp+30h] [rbp-148h] BYREF\n  _BYTE v11[256]; // [rsp+40h] [rbp-138h] BYREF\n\n  v5 = a1;\n  v6 = sub_1800E1460(a1, &v10, 0);\n  if ( !v6 )\n  {\n    if ( !v10[68] || v10[68] == 7 || v10[68] == 5 )\n    {\n      result = (*(__int64 (__fastcall **)(_DWORD *, __int64, __int64))(*(_QWORD *)v10 + 112LL))(v10, a2, a3);\n      v6 = result;\n      if ( !(_DWORD)result )\n        return result;\n    }\n    else\n    {\n      v6 = 46;\n    }\n  }\n  if ( *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v7 = sub_1800F3230(v11, 256, a2);\n    v8 = sub_1800F2F70(&v11[v7]);\n    sub_1800F3020(&v11[v8 + v7], (unsigned int)(256 - (v8 + v7)), a3);\n    sub_1800B20E0(v6, 5, v5, (unsigned int)\"Sound::get3DCustomRolloff\", (__int64)v11);\n  }\n  return v6;\n}", "assembly": "; \n; FMOD::Sound::get3DCustomRolloff from 0x1800a6fb0 to 0x1800a70ef (319 bytes)\n; \n; 5 xrefs:\n; > FMOD_Sound_Get3DCustomRolloff @ 0x1800c6559\n; > <???> @ 0x180187034\n; > <???> @ 0x180187044\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fb8f8\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\npush    rbx                                                            ; +0x0, 0x1800a6fb0\npush    rbp                                                            ; +0x2, 0x1800a6fb2\npush    rsi                                                            ; +0x3, 0x1800a6fb3\npush    r14                                                            ; +0x4, 0x1800a6fb4\nsub     rsp, 158h                                                      ; +0x6, 0x1800a6fb6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1800a6fbd\nxor     rax, rsp                                                       ; +0x14, 0x1800a6fc4\nmov     [rsp+178h+var_38], rax                                         ; +0x17, 0x1800a6fc7\nmov     rbp, r8                                                        ; +0x1f, 0x1800a6fcf\nmov     rbx, rdx                                                       ; +0x22, 0x1800a6fd2\nxor     r8d, r8d                                                       ; +0x25, 0x1800a6fd5\nlea     rdx, [rsp+178h+var_148]                                        ; +0x28, 0x1800a6fd8\nmov     r14, rcx                                                       ; +0x2d, 0x1800a6fdd\ncall    sub_1800E1460                                                  ; +0x30, 0x1800a6fe0\nmov     esi, eax                                                       ; +0x35, 0x1800a6fe5\ntest    eax, eax                                                       ; +0x37, 0x1800a6fe7\njnz     short loc_1800A702E                                            ; +0x39, 0x1800a6fe9\nmov     rax, [rsp+178h+var_148]                                        ; +0x3b, 0x1800a6feb\nmov     ecx, [rax+110h]                                                ; +0x40, 0x1800a6ff0\nnop                                                                    ; +0x46, 0x1800a6ff6\ntest    ecx, ecx                                                       ; +0x47, 0x1800a6ff7\njz      loc_1800A70D2                                                  ; +0x49, 0x1800a6ff9\nmov     rax, [rsp+178h+var_148]                                        ; +0x4f, 0x1800a6fff\nmov     ecx, [rax+110h]                                                ; +0x54, 0x1800a7004\nnop                                                                    ; +0x5a, 0x1800a700a\ncmp     ecx, 7                                                         ; +0x5b, 0x1800a700b\njz      loc_1800A70D2                                                  ; +0x5e, 0x1800a700e\nmov     rax, [rsp+178h+var_148]                                        ; +0x64, 0x1800a7014\nmov     ecx, [rax+110h]                                                ; +0x69, 0x1800a7019\nnop                                                                    ; +0x6f, 0x1800a701f\ncmp     ecx, 5                                                         ; +0x70, 0x1800a7020\njz      loc_1800A70D2                                                  ; +0x73, 0x1800a7023\nmov     esi, 2Eh ; '.'                                                 ; +0x79, 0x1800a7029\nmov     rax, cs:off_1801AED20                                          ; +0x7e, 0x1800a702e\ntest    byte ptr [rax+10h], 80h                                        ; +0x85, 0x1800a7035\njz      short loc_1800A70B3                                            ; +0x89, 0x1800a7039\nmov     [rsp+178h+var_28], rdi                                         ; +0x8b, 0x1800a703b\nlea     rcx, [rsp+178h+var_138]                                        ; +0x93, 0x1800a7043\nmov     edi, 100h                                                      ; +0x98, 0x1800a7048\nmov     r8, rbx                                                        ; +0x9d, 0x1800a704d\nmov     edx, edi                                                       ; +0xa0, 0x1800a7050\ncall    sub_1800F3230                                                  ; +0xa2, 0x1800a7052\nmovsxd  rbx, eax                                                       ; +0xa7, 0x1800a7057\nlea     rcx, [rsp+178h+var_138]                                        ; +0xaa, 0x1800a705a\nmov     edx, edi                                                       ; +0xaf, 0x1800a705f\nlea     r8, asc_18014572C; \", \"                                        ; +0xb1, 0x1800a7061\nsub     edx, ebx                                                       ; +0xb8, 0x1800a7068\nadd     rcx, rbx; void *                                               ; +0xba, 0x1800a706a\ncall    sub_1800F2F70                                                  ; +0xbd, 0x1800a706d\nadd     ebx, eax                                                       ; +0xc2, 0x1800a7072\nlea     rcx, [rsp+178h+var_138]                                        ; +0xc4, 0x1800a7074\nmovsxd  rax, ebx                                                       ; +0xc9, 0x1800a7079\nsub     edi, ebx                                                       ; +0xcc, 0x1800a707c\nadd     rcx, rax                                                       ; +0xce, 0x1800a707e\nmov     edx, edi                                                       ; +0xd1, 0x1800a7081\nmov     r8, rbp                                                        ; +0xd3, 0x1800a7083\ncall    sub_1800F3020                                                  ; +0xd6, 0x1800a7086\nlea     rax, [rsp+178h+var_138]                                        ; +0xdb, 0x1800a708b\nmov     r8, r14                                                        ; +0xe0, 0x1800a7090\nlea     r9, aSoundGet3dcust; \"Sound::get3DCustomRolloff\"               ; +0xe3, 0x1800a7093\nmov     [rsp+178h+var_158], rax                                        ; +0xea, 0x1800a709a\nmov     edx, 5                                                         ; +0xef, 0x1800a709f\nmov     ecx, esi                                                       ; +0xf4, 0x1800a70a4\ncall    sub_1800B20E0                                                  ; +0xf6, 0x1800a70a6\nmov     rdi, [rsp+178h+var_28]                                         ; +0xfb, 0x1800a70ab\nmov     eax, esi                                                       ; +0x103, 0x1800a70b3\nmov     rcx, [rsp+178h+var_38]                                         ; +0x105, 0x1800a70b5\nxor     rcx, rsp; StackCookie                                          ; +0x10d, 0x1800a70bd\ncall    __security_check_cookie                                        ; +0x110, 0x1800a70c0\nadd     rsp, 158h                                                      ; +0x115, 0x1800a70c5\npop     r14                                                            ; +0x11c, 0x1800a70cc\npop     rsi                                                            ; +0x11e, 0x1800a70ce\npop     rbp                                                            ; +0x11f, 0x1800a70cf\npop     rbx                                                            ; +0x120, 0x1800a70d0\nretn                                                                   ; +0x121, 0x1800a70d1\nmov     rcx, [rsp+178h+var_148]                                        ; +0x122, 0x1800a70d2\nmov     r8, rbp                                                        ; +0x127, 0x1800a70d7\nmov     rdx, rbx                                                       ; +0x12a, 0x1800a70da\nmov     rax, [rcx]                                                     ; +0x12d, 0x1800a70dd\ncall    qword ptr [rax+70h]                                            ; +0x130, 0x1800a70e0\nmov     esi, eax                                                       ; +0x133, 0x1800a70e3\ntest    eax, eax                                                       ; +0x135, 0x1800a70e5\njnz     loc_1800A702E                                                  ; +0x137, 0x1800a70e7\njmp     short loc_1800A70B5                                            ; +0x13d, 0x1800a70ed", "xrefs": ["FMOD_Sound_Get3DCustomRolloff @ 0x1800c6559", "<???> @ 0x180187034", "<???> @ 0x180187044", "<???> @ 0x180194348", "<???> @ 0x1801fb8f8"], "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"}