{"type": "func", "start": 6443503504, "end": 6443503778, "name": "sub_180100F90", "pseudocode": "// \n// sub_180100F90 from 0x180100f90 to 0x1801010a2 (274 bytes)\n// \n// 4 xrefs:\n// > FMOD::System::getDefaultMixMatrix @ 0x1800ad401\n// > <???> @ 0x18018fa9c\n// > <???> @ 0x18018faac\n// > <???> @ 0x180201130\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:54:29 +0000\n// \n\n__int64 __fastcall sub_180100F90(__int64 a1, int a2, int a3, void *a4, unsigned int a5)\n{\n  int v5; // ebx\n  __int64 v8; // rdi\n  __int64 v9; // rsi\n  __int64 v10; // r8\n\n  v5 = a5;\n  if ( !a4 || a5 > 0x20 || a2 == 1 || a3 == 1 )\n    return 31;\n  if ( !a2 )\n    a2 = *(_DWORD *)(a1 + 70452);\n  if ( !*(_BYTE *)(a1 + 8) )\n    return 67;\n  if ( (unsigned int)(a2 - 1) > 7 )\n    return 31;\n  v8 = a1 + 192LL * a2;\n  if ( !a3 )\n    a3 = *(_DWORD *)(a1 + 70452);\n  if ( (unsigned int)(a3 - 1) > 7 )\n    return 31;\n  v9 = a1 + 192LL * a3;\n  if ( !a5 )\n    v5 = *(_DWORD *)(v8 + 70936);\n  memset(a4, 0, 4LL * *(_DWORD *)(v9 + 70936) * v5);\n  return sub_1800F8B30(v8 + 70936, v9 + 70936, v10, v5, (__int64)a4);\n}", "assembly": "; \n; sub_180100F90 from 0x180100f90 to 0x1801010a2 (274 bytes)\n; \n; 4 xrefs:\n; > FMOD::System::getDefaultMixMatrix @ 0x1800ad401\n; > <???> @ 0x18018fa9c\n; > <???> @ 0x18018faac\n; > <???> @ 0x180201130\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:54:29 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180100f90\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180100f95\npush    rdi                                                            ; +0xa, 0x180100f9a\nsub     rsp, 30h                                                       ; +0xb, 0x180100f9b\nmov     ebx, dword ptr [rsp+38h+arg_20]                                ; +0xf, 0x180100f9f\nmov     rbp, r9                                                        ; +0x13, 0x180100fa3\ntest    r9, r9                                                         ; +0x16, 0x180100fa6\njz      loc_18010108D                                                  ; +0x19, 0x180100fa9\ncmp     ebx, 20h ; ' '                                                 ; +0x1f, 0x180100faf\nja      loc_18010108D                                                  ; +0x22, 0x180100fb2\ncmp     edx, 1                                                         ; +0x28, 0x180100fb8\njz      loc_18010108D                                                  ; +0x2b, 0x180100fbb\ncmp     r8d, 1                                                         ; +0x31, 0x180100fc1\njz      loc_18010108D                                                  ; +0x35, 0x180100fc5\ntest    edx, edx                                                       ; +0x3b, 0x180100fcb\njnz     short loc_180100FD5                                            ; +0x3d, 0x180100fcd\nmov     edx, [rcx+11334h]                                              ; +0x3f, 0x180100fcf\ncmp     byte ptr [rcx+8], 0                                            ; +0x45, 0x180100fd5\njnz     short loc_180100FF0                                            ; +0x49, 0x180100fd9\nmov     eax, 43h ; 'C'                                                 ; +0x4b, 0x180100fdb\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x50, 0x180100fe0\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x55, 0x180100fe5\nadd     rsp, 30h                                                       ; +0x5a, 0x180100fea\npop     rdi                                                            ; +0x5e, 0x180100fee\nretn                                                                   ; +0x5f, 0x180100fef\nlea     eax, [rdx-1]                                                   ; +0x60, 0x180100ff0\ncmp     eax, 7                                                         ; +0x63, 0x180100ff3\nja      loc_18010108D                                                  ; +0x66, 0x180100ff6\nmovsxd  rax, edx                                                       ; +0x6c, 0x180100ffc\nlea     rdi, [rax+rax*2]                                               ; +0x6f, 0x180100fff\nshl     rdi, 6                                                         ; +0x73, 0x180101003\nadd     rdi, rcx                                                       ; +0x77, 0x180101007\ntest    r8d, r8d                                                       ; +0x7a, 0x18010100a\njnz     short loc_180101016                                            ; +0x7d, 0x18010100d\nmov     r8d, [rcx+11334h]                                              ; +0x7f, 0x18010100f\nlea     eax, [r8-1]                                                    ; +0x86, 0x180101016\ncmp     eax, 7                                                         ; +0x8a, 0x18010101a\nja      short loc_18010108D                                            ; +0x8d, 0x18010101d\nmov     [rsp+38h+arg_0], rsi                                           ; +0x8f, 0x18010101f\nmovsxd  rax, r8d                                                       ; +0x94, 0x180101024\nlea     rsi, [rax+rax*2]                                               ; +0x97, 0x180101027\nshl     rsi, 6                                                         ; +0x9b, 0x18010102b\nadd     rsi, rcx                                                       ; +0x9f, 0x18010102f\ntest    ebx, ebx                                                       ; +0xa2, 0x180101032\njnz     short loc_18010103C                                            ; +0xa4, 0x180101034\nmov     ebx, [rdi+11518h]                                              ; +0xa6, 0x180101036\nmov     eax, ebx                                                       ; +0xac, 0x18010103c\nxor     edx, edx; Val                                                  ; +0xae, 0x18010103e\nimul    eax, [rsi+11518h]                                              ; +0xb0, 0x180101040\nmov     rcx, rbp; void *                                               ; +0xb7, 0x180101047\nmovsxd  r8, eax                                                        ; +0xba, 0x18010104a\nshl     r8, 2; Size                                                    ; +0xbd, 0x18010104d\ncall    memset                                                         ; +0xc1, 0x180101051\nmovss   xmm2, cs:dword_180145744                                       ; +0xc6, 0x180101056\nlea     rdx, [rsi+11518h]                                              ; +0xce, 0x18010105e\nmov     r9d, ebx                                                       ; +0xd5, 0x180101065\nmov     [rsp+38h+arg_20], rbp                                          ; +0xd8, 0x180101068\nlea     rcx, [rdi+11518h]                                              ; +0xdd, 0x18010106d\nmov     rsi, [rsp+38h+arg_0]                                           ; +0xe4, 0x180101074\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xe9, 0x180101079\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xee, 0x18010107e\nadd     rsp, 30h                                                       ; +0xf3, 0x180101083\npop     rdi                                                            ; +0xf7, 0x180101087\njmp     sub_1800F8B30                                                  ; +0xf8, 0x180101088\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xfd, 0x18010108d\nmov     eax, 1Fh                                                       ; +0x102, 0x180101092\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x107, 0x180101097\nadd     rsp, 30h                                                       ; +0x10c, 0x18010109c\npop     rdi                                                            ; +0x110, 0x1801010a0\nretn                                                                   ; +0x111, 0x1801010a1", "xrefs": ["FMOD::System::getDefaultMixMatrix @ 0x1800ad401", "<???> @ 0x18018fa9c", "<???> @ 0x18018faac", "<???> @ 0x180201130"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}