{"type": "func", "start": 6443175744, "end": 6443176047, "name": "FMOD::System::setDSPBufferSize", "pseudocode": "// \n// FMOD::System::setDSPBufferSize from 0x1800b0f40 to 0x1800b106f (303 bytes)\n// \n// 5 xrefs:\n// > FMOD_System_SetDSPBufferSize @ 0x1800c6e99\n// > <???> @ 0x180187bf4\n// > <???> @ 0x180187c28\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fcb04\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::System::setDSPBufferSize(__int64 a1, unsigned int a2, unsigned int 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 = FMOD::SystemI::validate(a1, &v11, &v10);\n  if ( (v6 || (v6 = sub_1800E7310(v11, a2, a3)) != 0) && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v7 = sub_1800F2EF0(v12, 256, a2);\n    v8 = sub_1800F2F70(&v12[v7]);\n    sub_1800F2EC0(&v12[v8 + v7], (unsigned int)(256 - (v8 + v7)), a3);\n    sub_1800B20E0(v6, 1, v5, (unsigned int)\"System::setDSPBufferSize\", (__int64)v12);\n  }\n  if ( v10 )\n    sub_180102320(v10);\n  return v6;\n}", "assembly": "; \n; FMOD::System::setDSPBufferSize from 0x1800b0f40 to 0x1800b106f (303 bytes)\n; \n; 5 xrefs:\n; > FMOD_System_SetDSPBufferSize @ 0x1800c6e99\n; > <???> @ 0x180187bf4\n; > <???> @ 0x180187c28\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fcb04\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, 0x1800b0f40\npush    rsi                                                            ; +0x3, 0x1800b0f43\nsub     rsp, 170h                                                      ; +0x4, 0x1800b0f44\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x1800b0f4b\nxor     rax, rsp                                                       ; +0x12, 0x1800b0f52\nmov     [rsp+178h+var_38], rax                                         ; +0x15, 0x1800b0f55\nmov     [r11-10h], rbx                                                 ; +0x1d, 0x1800b0f5d\nmov     ebx, edx                                                       ; +0x21, 0x1800b0f61\nmov     [r11-18h], rbp                                                 ; +0x23, 0x1800b0f63\nlea     rdx, [rsp+178h+var_140]                                        ; +0x27, 0x1800b0f67\nmov     ebp, r8d                                                       ; +0x2c, 0x1800b0f6c\nmov     [r11-28h], r14                                                 ; +0x2f, 0x1800b0f6f\nlea     r8, [rsp+178h+var_148]                                         ; +0x33, 0x1800b0f73\nmov     [rsp+178h+var_148], 0                                          ; +0x38, 0x1800b0f78\nmov     r14, rcx                                                       ; +0x41, 0x1800b0f81\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x44, 0x1800b0f84\nmov     esi, eax                                                       ; +0x49, 0x1800b0f89\ntest    eax, eax                                                       ; +0x4b, 0x1800b0f8b\njnz     short loc_1800B0FA8                                            ; +0x4d, 0x1800b0f8d\nmov     rcx, [rsp+178h+var_140]                                        ; +0x4f, 0x1800b0f8f\nmov     r8d, ebp                                                       ; +0x54, 0x1800b0f94\nmov     edx, ebx                                                       ; +0x57, 0x1800b0f97\ncall    sub_1800E7310                                                  ; +0x59, 0x1800b0f99\nmov     esi, eax                                                       ; +0x5e, 0x1800b0f9e\ntest    eax, eax                                                       ; +0x60, 0x1800b0fa0\njz      loc_1800B102D                                                  ; +0x62, 0x1800b0fa2\nmov     rax, cs:off_1801AED20                                          ; +0x68, 0x1800b0fa8\ntest    byte ptr [rax+10h], 80h                                        ; +0x6f, 0x1800b0faf\njz      short loc_1800B102D                                            ; +0x73, 0x1800b0fb3\nmov     [rsp+178h+var_20], rdi                                         ; +0x75, 0x1800b0fb5\nlea     rcx, [rsp+178h+var_138]                                        ; +0x7d, 0x1800b0fbd\nmov     edi, 100h                                                      ; +0x82, 0x1800b0fc2\nmov     r8d, ebx                                                       ; +0x87, 0x1800b0fc7\nmov     edx, edi                                                       ; +0x8a, 0x1800b0fca\ncall    sub_1800F2EF0                                                  ; +0x8c, 0x1800b0fcc\nmovsxd  rbx, eax                                                       ; +0x91, 0x1800b0fd1\nlea     rcx, [rsp+178h+var_138]                                        ; +0x94, 0x1800b0fd4\nmov     edx, edi                                                       ; +0x99, 0x1800b0fd9\nlea     r8, asc_18014572C; \", \"                                        ; +0x9b, 0x1800b0fdb\nsub     edx, ebx                                                       ; +0xa2, 0x1800b0fe2\nadd     rcx, rbx; void *                                               ; +0xa4, 0x1800b0fe4\ncall    sub_1800F2F70                                                  ; +0xa7, 0x1800b0fe7\nadd     ebx, eax                                                       ; +0xac, 0x1800b0fec\nlea     rcx, [rsp+178h+var_138]                                        ; +0xae, 0x1800b0fee\nmovsxd  rax, ebx                                                       ; +0xb3, 0x1800b0ff3\nsub     edi, ebx                                                       ; +0xb6, 0x1800b0ff6\nadd     rcx, rax                                                       ; +0xb8, 0x1800b0ff8\nmov     edx, edi                                                       ; +0xbb, 0x1800b0ffb\nmov     r8d, ebp                                                       ; +0xbd, 0x1800b0ffd\ncall    sub_1800F2EC0                                                  ; +0xc0, 0x1800b1000\nlea     rax, [rsp+178h+var_138]                                        ; +0xc5, 0x1800b1005\nmov     r8, r14                                                        ; +0xca, 0x1800b100a\nlea     r9, aSystemSetdspbu; \"System::setDSPBufferSize\"                ; +0xcd, 0x1800b100d\nmov     [rsp+178h+var_158], rax                                        ; +0xd4, 0x1800b1014\nmov     edx, 1                                                         ; +0xd9, 0x1800b1019\nmov     ecx, esi                                                       ; +0xde, 0x1800b101e\ncall    sub_1800B20E0                                                  ; +0xe0, 0x1800b1020\nmov     rdi, [rsp+178h+var_20]                                         ; +0xe5, 0x1800b1025\nmov     rcx, [rsp+178h+var_148]                                        ; +0xed, 0x1800b102d\nmov     r14, [rsp+178h+var_28]                                         ; +0xf2, 0x1800b1032\nmov     rbp, [rsp+178h+var_18]                                         ; +0xfa, 0x1800b103a\nmov     rbx, [rsp+178h+var_10]                                         ; +0x102, 0x1800b1042\ntest    rcx, rcx                                                       ; +0x10a, 0x1800b104a\njz      short loc_1800B1054                                            ; +0x10d, 0x1800b104d\ncall    sub_180102320                                                  ; +0x10f, 0x1800b104f\nmov     eax, esi                                                       ; +0x114, 0x1800b1054\nmov     rcx, [rsp+178h+var_38]                                         ; +0x116, 0x1800b1056\nxor     rcx, rsp; StackCookie                                          ; +0x11e, 0x1800b105e\ncall    __security_check_cookie                                        ; +0x121, 0x1800b1061\nadd     rsp, 170h                                                      ; +0x126, 0x1800b1066\npop     rsi                                                            ; +0x12d, 0x1800b106d\nretn                                                                   ; +0x12e, 0x1800b106e", "xrefs": ["FMOD_System_SetDSPBufferSize @ 0x1800c6e99", "<???> @ 0x180187bf4", "<???> @ 0x180187c28", "<???> @ 0x180194348", "<???> @ 0x1801fcb04"], "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"}