{"type": "func", "start": 6443159296, "end": 6443159545, "name": "FMOD::System::getChannelsPlaying", "pseudocode": "// \n// FMOD::System::getChannelsPlaying from 0x1800acf00 to 0x1800acff9 (249 bytes)\n// \n// 5 xrefs:\n// > FMOD_System_GetChannelsPlaying @ 0x1800c6a99\n// > <???> @ 0x180188770\n// > <???> @ 0x180188780\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fc2e8\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::getChannelsPlaying(__int64 a1, __int64 a2, __int64 a3)\n{\n  int v5; // r14d\n  unsigned int v6; // esi\n  __int64 result; // rax\n  int v8; // ebx\n  int v9; // eax\n  __int64 v10; // [rsp+30h] [rbp-148h] BYREF\n  _BYTE v11[256]; // [rsp+40h] [rbp-138h] BYREF\n\n  v5 = a1;\n  v6 = FMOD::SystemI::validate(a1, &v10, 0);\n  if ( v6 || (result = sub_1800E3FE0(v10, a2, a3), (v6 = result) != 0) )\n  {\n    if ( *((char *)off_1801AED20 + 16) < 0 )\n    {\n      v8 = sub_1800F3020(v11, 256, a2);\n      v9 = sub_1800F2F70(&v11[v8]);\n      sub_1800F3020(&v11[v9 + v8], (unsigned int)(256 - (v9 + v8)), a3);\n      sub_1800B20E0(v6, 1, v5, (unsigned int)\"System::getChannelsPlaying\", (__int64)v11);\n    }\n    return v6;\n  }\n  return result;\n}", "assembly": "; \n; FMOD::System::getChannelsPlaying from 0x1800acf00 to 0x1800acff9 (249 bytes)\n; \n; 5 xrefs:\n; > FMOD_System_GetChannelsPlaying @ 0x1800c6a99\n; > <???> @ 0x180188770\n; > <???> @ 0x180188780\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fc2e8\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, 0x1800acf00\npush    rbp                                                            ; +0x2, 0x1800acf02\npush    rsi                                                            ; +0x3, 0x1800acf03\npush    r14                                                            ; +0x4, 0x1800acf04\nsub     rsp, 158h                                                      ; +0x6, 0x1800acf06\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x1800acf0d\nxor     rax, rsp                                                       ; +0x14, 0x1800acf14\nmov     [rsp+178h+var_38], rax                                         ; +0x17, 0x1800acf17\nmov     rbp, r8                                                        ; +0x1f, 0x1800acf1f\nmov     rbx, rdx                                                       ; +0x22, 0x1800acf22\nxor     r8d, r8d                                                       ; +0x25, 0x1800acf25\nlea     rdx, [rsp+178h+var_148]                                        ; +0x28, 0x1800acf28\nmov     r14, rcx                                                       ; +0x2d, 0x1800acf2d\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x30, 0x1800acf30\nmov     esi, eax                                                       ; +0x35, 0x1800acf35\ntest    eax, eax                                                       ; +0x37, 0x1800acf37\njnz     short loc_1800ACF55                                            ; +0x39, 0x1800acf39\nmov     rcx, [rsp+178h+var_148]                                        ; +0x3b, 0x1800acf3b\nmov     r8, rbp                                                        ; +0x40, 0x1800acf40\nmov     rdx, rbx                                                       ; +0x43, 0x1800acf43\ncall    sub_1800E3FE0                                                  ; +0x46, 0x1800acf46\nmov     esi, eax                                                       ; +0x4b, 0x1800acf4b\ntest    eax, eax                                                       ; +0x4d, 0x1800acf4d\njz      loc_1800ACFDC                                                  ; +0x4f, 0x1800acf4f\nmov     rax, cs:off_1801AED20                                          ; +0x55, 0x1800acf55\ntest    byte ptr [rax+10h], 80h                                        ; +0x5c, 0x1800acf5c\njz      short loc_1800ACFDA                                            ; +0x60, 0x1800acf60\nmov     [rsp+178h+var_28], rdi                                         ; +0x62, 0x1800acf62\nlea     rcx, [rsp+178h+var_138]                                        ; +0x6a, 0x1800acf6a\nmov     edi, 100h                                                      ; +0x6f, 0x1800acf6f\nmov     r8, rbx                                                        ; +0x74, 0x1800acf74\nmov     edx, edi                                                       ; +0x77, 0x1800acf77\ncall    sub_1800F3020                                                  ; +0x79, 0x1800acf79\nmovsxd  rbx, eax                                                       ; +0x7e, 0x1800acf7e\nlea     rcx, [rsp+178h+var_138]                                        ; +0x81, 0x1800acf81\nmov     edx, edi                                                       ; +0x86, 0x1800acf86\nlea     r8, asc_18014572C; \", \"                                        ; +0x88, 0x1800acf88\nsub     edx, ebx                                                       ; +0x8f, 0x1800acf8f\nadd     rcx, rbx; void *                                               ; +0x91, 0x1800acf91\ncall    sub_1800F2F70                                                  ; +0x94, 0x1800acf94\nadd     ebx, eax                                                       ; +0x99, 0x1800acf99\nlea     rcx, [rsp+178h+var_138]                                        ; +0x9b, 0x1800acf9b\nmovsxd  rax, ebx                                                       ; +0xa0, 0x1800acfa0\nsub     edi, ebx                                                       ; +0xa3, 0x1800acfa3\nadd     rcx, rax                                                       ; +0xa5, 0x1800acfa5\nmov     edx, edi                                                       ; +0xa8, 0x1800acfa8\nmov     r8, rbp                                                        ; +0xaa, 0x1800acfaa\ncall    sub_1800F3020                                                  ; +0xad, 0x1800acfad\nlea     rax, [rsp+178h+var_138]                                        ; +0xb2, 0x1800acfb2\nmov     r8, r14                                                        ; +0xb7, 0x1800acfb7\nlea     r9, aSystemGetchann_0; \"System::getChannelsPlaying\"            ; +0xba, 0x1800acfba\nmov     [rsp+178h+var_158], rax                                        ; +0xc1, 0x1800acfc1\nmov     edx, 1                                                         ; +0xc6, 0x1800acfc6\nmov     ecx, esi                                                       ; +0xcb, 0x1800acfcb\ncall    sub_1800B20E0                                                  ; +0xcd, 0x1800acfcd\nmov     rdi, [rsp+178h+var_28]                                         ; +0xd2, 0x1800acfd2\nmov     eax, esi                                                       ; +0xda, 0x1800acfda\nmov     rcx, [rsp+178h+var_38]                                         ; +0xdc, 0x1800acfdc\nxor     rcx, rsp; StackCookie                                          ; +0xe4, 0x1800acfe4\ncall    __security_check_cookie                                        ; +0xe7, 0x1800acfe7\nadd     rsp, 158h                                                      ; +0xec, 0x1800acfec\npop     r14                                                            ; +0xf3, 0x1800acff3\npop     rsi                                                            ; +0xf5, 0x1800acff5\npop     rbp                                                            ; +0xf6, 0x1800acff6\npop     rbx                                                            ; +0xf7, 0x1800acff7\nretn                                                                   ; +0xf8, 0x1800acff8", "xrefs": ["FMOD_System_GetChannelsPlaying @ 0x1800c6a99", "<???> @ 0x180188770", "<???> @ 0x180188780", "<???> @ 0x180194348", "<???> @ 0x1801fc2e8"], "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"}