{"type": "func", "start": 6443158992, "end": 6443159295, "name": "FMOD::System::getChannel", "pseudocode": "// \n// FMOD::System::getChannel from 0x1800acdd0 to 0x1800aceff (303 bytes)\n// \n// 5 xrefs:\n// > FMOD_System_GetChannel @ 0x1800c6a89\n// > <???> @ 0x180188ac8\n// > <???> @ 0x180188afc\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fc2ac\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::getChannel(__int64 a1, unsigned int a2, __int64 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_1800E3FA0(v11, a2, a3)) != 0) && *((char *)off_1801AED20 + 16) < 0 )\n  {\n    v7 = sub_1800F2EC0(v12, 256, a2);\n    v8 = sub_1800F2F70(&v12[v7]);\n    sub_1800F3230(&v12[v8 + v7], (unsigned int)(256 - (v8 + v7)), a3);\n    sub_1800B20E0(v6, 1, v5, (unsigned int)\"System::getChannel\", (__int64)v12);\n  }\n  if ( v10 )\n    sub_180102320(v10);\n  return v6;\n}", "assembly": "; \n; FMOD::System::getChannel from 0x1800acdd0 to 0x1800aceff (303 bytes)\n; \n; 5 xrefs:\n; > FMOD_System_GetChannel @ 0x1800c6a89\n; > <???> @ 0x180188ac8\n; > <???> @ 0x180188afc\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fc2ac\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, 0x1800acdd0\npush    rsi                                                            ; +0x3, 0x1800acdd3\nsub     rsp, 170h                                                      ; +0x4, 0x1800acdd4\nmov     rax, cs:__security_cookie                                      ; +0xb, 0x1800acddb\nxor     rax, rsp                                                       ; +0x12, 0x1800acde2\nmov     [rsp+178h+var_38], rax                                         ; +0x15, 0x1800acde5\nmov     [r11-10h], rbx                                                 ; +0x1d, 0x1800acded\nmov     ebx, edx                                                       ; +0x21, 0x1800acdf1\nmov     [r11-18h], rbp                                                 ; +0x23, 0x1800acdf3\nlea     rdx, [rsp+178h+var_140]                                        ; +0x27, 0x1800acdf7\nmov     rbp, r8                                                        ; +0x2c, 0x1800acdfc\nmov     [r11-28h], r14                                                 ; +0x2f, 0x1800acdff\nlea     r8, [rsp+178h+var_148]                                         ; +0x33, 0x1800ace03\nmov     [rsp+178h+var_148], 0                                          ; +0x38, 0x1800ace08\nmov     r14, rcx                                                       ; +0x41, 0x1800ace11\ncall    ?validate@SystemI@FMOD@@SA?AW4FMOD_RESULT@@PEAVSystem@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI * *,FMOD::SystemLockScope *) ; +0x44, 0x1800ace14\nmov     esi, eax                                                       ; +0x49, 0x1800ace19\ntest    eax, eax                                                       ; +0x4b, 0x1800ace1b\njnz     short loc_1800ACE38                                            ; +0x4d, 0x1800ace1d\nmov     rcx, [rsp+178h+var_140]                                        ; +0x4f, 0x1800ace1f\nmov     r8, rbp                                                        ; +0x54, 0x1800ace24\nmov     edx, ebx                                                       ; +0x57, 0x1800ace27\ncall    sub_1800E3FA0                                                  ; +0x59, 0x1800ace29\nmov     esi, eax                                                       ; +0x5e, 0x1800ace2e\ntest    eax, eax                                                       ; +0x60, 0x1800ace30\njz      loc_1800ACEBD                                                  ; +0x62, 0x1800ace32\nmov     rax, cs:off_1801AED20                                          ; +0x68, 0x1800ace38\ntest    byte ptr [rax+10h], 80h                                        ; +0x6f, 0x1800ace3f\njz      short loc_1800ACEBD                                            ; +0x73, 0x1800ace43\nmov     [rsp+178h+var_20], rdi                                         ; +0x75, 0x1800ace45\nlea     rcx, [rsp+178h+var_138]                                        ; +0x7d, 0x1800ace4d\nmov     edi, 100h                                                      ; +0x82, 0x1800ace52\nmov     r8d, ebx                                                       ; +0x87, 0x1800ace57\nmov     edx, edi                                                       ; +0x8a, 0x1800ace5a\ncall    sub_1800F2EC0                                                  ; +0x8c, 0x1800ace5c\nmovsxd  rbx, eax                                                       ; +0x91, 0x1800ace61\nlea     rcx, [rsp+178h+var_138]                                        ; +0x94, 0x1800ace64\nmov     edx, edi                                                       ; +0x99, 0x1800ace69\nlea     r8, asc_18014572C; \", \"                                        ; +0x9b, 0x1800ace6b\nsub     edx, ebx                                                       ; +0xa2, 0x1800ace72\nadd     rcx, rbx; void *                                               ; +0xa4, 0x1800ace74\ncall    sub_1800F2F70                                                  ; +0xa7, 0x1800ace77\nadd     ebx, eax                                                       ; +0xac, 0x1800ace7c\nlea     rcx, [rsp+178h+var_138]                                        ; +0xae, 0x1800ace7e\nmovsxd  rax, ebx                                                       ; +0xb3, 0x1800ace83\nsub     edi, ebx                                                       ; +0xb6, 0x1800ace86\nadd     rcx, rax                                                       ; +0xb8, 0x1800ace88\nmov     edx, edi                                                       ; +0xbb, 0x1800ace8b\nmov     r8, rbp                                                        ; +0xbd, 0x1800ace8d\ncall    sub_1800F3230                                                  ; +0xc0, 0x1800ace90\nlea     rax, [rsp+178h+var_138]                                        ; +0xc5, 0x1800ace95\nmov     r8, r14                                                        ; +0xca, 0x1800ace9a\nlea     r9, aSystemGetchann; \"System::getChannel\"                      ; +0xcd, 0x1800ace9d\nmov     [rsp+178h+var_158], rax                                        ; +0xd4, 0x1800acea4\nmov     edx, 1                                                         ; +0xd9, 0x1800acea9\nmov     ecx, esi                                                       ; +0xde, 0x1800aceae\ncall    sub_1800B20E0                                                  ; +0xe0, 0x1800aceb0\nmov     rdi, [rsp+178h+var_20]                                         ; +0xe5, 0x1800aceb5\nmov     rcx, [rsp+178h+var_148]                                        ; +0xed, 0x1800acebd\nmov     r14, [rsp+178h+var_28]                                         ; +0xf2, 0x1800acec2\nmov     rbp, [rsp+178h+var_18]                                         ; +0xfa, 0x1800aceca\nmov     rbx, [rsp+178h+var_10]                                         ; +0x102, 0x1800aced2\ntest    rcx, rcx                                                       ; +0x10a, 0x1800aceda\njz      short loc_1800ACEE4                                            ; +0x10d, 0x1800acedd\ncall    sub_180102320                                                  ; +0x10f, 0x1800acedf\nmov     eax, esi                                                       ; +0x114, 0x1800acee4\nmov     rcx, [rsp+178h+var_38]                                         ; +0x116, 0x1800acee6\nxor     rcx, rsp; StackCookie                                          ; +0x11e, 0x1800aceee\ncall    __security_check_cookie                                        ; +0x121, 0x1800acef1\nadd     rsp, 170h                                                      ; +0x126, 0x1800acef6\npop     rsi                                                            ; +0x12d, 0x1800acefd\nretn                                                                   ; +0x12e, 0x1800acefe", "xrefs": ["FMOD_System_GetChannel @ 0x1800c6a89", "<???> @ 0x180188ac8", "<???> @ 0x180188afc", "<???> @ 0x180194348", "<???> @ 0x1801fc2ac"], "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"}