{"type": "func", "start": 6442496752, "end": 6442497046, "name": "FMOD::ChannelControl::getDSPClock", "pseudocode": "// \n// FMOD::ChannelControl::getDSPClock from 0x18000b2f0 to 0x18000b416 (294 bytes)\n// \n// 6 xrefs:\n// > FMOD_ChannelGroup_GetDSPClock @ 0x1800c4f59\n// > FMOD_Channel_GetDSPClock @ 0x1800c5529\n// > <???> @ 0x18017df64\n// > <???> @ 0x18017df74\n// > <???> @ 0x180194348\n// > <???> @ 0x1801f66f0\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::ChannelControl::getDSPClock(__int64 a1, _QWORD *a2, _QWORD *a3)\n{\n  unsigned int v6; // esi\n  __int64 result; // rax\n  int v8; // ebx\n  int v9; // eax\n  _QWORD v10[2]; // [rsp+30h] [rbp-148h] BYREF\n  _BYTE v11[256]; // [rsp+40h] [rbp-138h] BYREF\n\n  v6 = sub_180012360(a1, v10, 0);\n  if ( v6 )\n    goto LABEL_8;\n  v6 = (*(__int64 (__fastcall **)(_QWORD, _QWORD *, _QWORD *))(*(_QWORD *)v10[0] + 216LL))(v10[0], a2, a3);\n  if ( v6 )\n    goto LABEL_8;\n  if ( a2 )\n    *a2 >>= 20;\n  if ( a3 )\n    *a3 >>= 20;\n  result = sub_180012360(a1, v10, 0);\n  v6 = result;\n  if ( (_DWORD)result )\n  {\nLABEL_8:\n    if ( *((char *)off_1801AED20 + 16) < 0 )\n    {\n      v8 = sub_1800F3280(v11, 256, a2);\n      v9 = sub_1800F2F70(&v11[v8]);\n      sub_1800F3280(&v11[v9 + v8], (unsigned int)(256 - (v9 + v8)), a3);\n      sub_1800B20E0(v6, 4, a1, (unsigned int)\"ChannelControl::getDSPClock\", (__int64)v11);\n    }\n    return v6;\n  }\n  return result;\n}", "assembly": "; \n; FMOD::ChannelControl::getDSPClock from 0x18000b2f0 to 0x18000b416 (294 bytes)\n; \n; 6 xrefs:\n; > FMOD_ChannelGroup_GetDSPClock @ 0x1800c4f59\n; > FMOD_Channel_GetDSPClock @ 0x1800c5529\n; > <???> @ 0x18017df64\n; > <???> @ 0x18017df74\n; > <???> @ 0x180194348\n; > <???> @ 0x1801f66f0\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, 0x18000b2f0\npush    rbp                                                            ; +0x2, 0x18000b2f2\npush    rsi                                                            ; +0x3, 0x18000b2f3\npush    r14                                                            ; +0x4, 0x18000b2f4\nsub     rsp, 158h                                                      ; +0x6, 0x18000b2f6\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x18000b2fd\nxor     rax, rsp                                                       ; +0x14, 0x18000b304\nmov     [rsp+178h+var_38], rax                                         ; +0x17, 0x18000b307\nmov     rbp, r8                                                        ; +0x1f, 0x18000b30f\nmov     rbx, rdx                                                       ; +0x22, 0x18000b312\nxor     r8d, r8d                                                       ; +0x25, 0x18000b315\nlea     rdx, [rsp+178h+var_148]                                        ; +0x28, 0x18000b318\nmov     r14, rcx                                                       ; +0x2d, 0x18000b31d\ncall    sub_180012360                                                  ; +0x30, 0x18000b320\nmov     esi, eax                                                       ; +0x35, 0x18000b325\ntest    eax, eax                                                       ; +0x37, 0x18000b327\njnz     short loc_18000B372                                            ; +0x39, 0x18000b329\nmov     rcx, [rsp+178h+var_148]                                        ; +0x3b, 0x18000b32b\nmov     r8, rbp                                                        ; +0x40, 0x18000b330\nmov     rdx, rbx                                                       ; +0x43, 0x18000b333\nmov     rax, [rcx]                                                     ; +0x46, 0x18000b336\ncall    qword ptr [rax+0D8h]                                           ; +0x49, 0x18000b339\nmov     esi, eax                                                       ; +0x4f, 0x18000b33f\ntest    eax, eax                                                       ; +0x51, 0x18000b341\njnz     short loc_18000B372                                            ; +0x53, 0x18000b343\ntest    rbx, rbx                                                       ; +0x55, 0x18000b345\njz      short loc_18000B34E                                            ; +0x58, 0x18000b348\nshr     qword ptr [rbx], 14h                                           ; +0x5a, 0x18000b34a\ntest    rbp, rbp                                                       ; +0x5e, 0x18000b34e\njz      short loc_18000B358                                            ; +0x61, 0x18000b351\nshr     qword ptr [rbp+0], 14h                                         ; +0x63, 0x18000b353\nxor     r8d, r8d                                                       ; +0x68, 0x18000b358\nlea     rdx, [rsp+178h+var_148]                                        ; +0x6b, 0x18000b35b\nmov     rcx, r14                                                       ; +0x70, 0x18000b360\ncall    sub_180012360                                                  ; +0x73, 0x18000b363\nmov     esi, eax                                                       ; +0x78, 0x18000b368\ntest    eax, eax                                                       ; +0x7a, 0x18000b36a\njz      loc_18000B3F9                                                  ; +0x7c, 0x18000b36c\nmov     rax, cs:off_1801AED20                                          ; +0x82, 0x18000b372\ntest    byte ptr [rax+10h], 80h                                        ; +0x89, 0x18000b379\njz      short loc_18000B3F7                                            ; +0x8d, 0x18000b37d\nmov     [rsp+178h+var_28], rdi                                         ; +0x8f, 0x18000b37f\nlea     rcx, [rsp+178h+var_138]                                        ; +0x97, 0x18000b387\nmov     edi, 100h                                                      ; +0x9c, 0x18000b38c\nmov     r8, rbx                                                        ; +0xa1, 0x18000b391\nmov     edx, edi                                                       ; +0xa4, 0x18000b394\ncall    sub_1800F3280                                                  ; +0xa6, 0x18000b396\nmovsxd  rbx, eax                                                       ; +0xab, 0x18000b39b\nlea     rcx, [rsp+178h+var_138]                                        ; +0xae, 0x18000b39e\nmov     edx, edi                                                       ; +0xb3, 0x18000b3a3\nlea     r8, asc_18014572C; \", \"                                        ; +0xb5, 0x18000b3a5\nsub     edx, ebx                                                       ; +0xbc, 0x18000b3ac\nadd     rcx, rbx; void *                                               ; +0xbe, 0x18000b3ae\ncall    sub_1800F2F70                                                  ; +0xc1, 0x18000b3b1\nadd     ebx, eax                                                       ; +0xc6, 0x18000b3b6\nlea     rcx, [rsp+178h+var_138]                                        ; +0xc8, 0x18000b3b8\nmovsxd  rax, ebx                                                       ; +0xcd, 0x18000b3bd\nsub     edi, ebx                                                       ; +0xd0, 0x18000b3c0\nadd     rcx, rax                                                       ; +0xd2, 0x18000b3c2\nmov     edx, edi                                                       ; +0xd5, 0x18000b3c5\nmov     r8, rbp                                                        ; +0xd7, 0x18000b3c7\ncall    sub_1800F3280                                                  ; +0xda, 0x18000b3ca\nlea     rax, [rsp+178h+var_138]                                        ; +0xdf, 0x18000b3cf\nmov     r8, r14                                                        ; +0xe4, 0x18000b3d4\nlea     r9, aChannelcontrol_13; \"ChannelControl::getDSPClock\"          ; +0xe7, 0x18000b3d7\nmov     [rsp+178h+var_158], rax                                        ; +0xee, 0x18000b3de\nmov     edx, 4                                                         ; +0xf3, 0x18000b3e3\nmov     ecx, esi                                                       ; +0xf8, 0x18000b3e8\ncall    sub_1800B20E0                                                  ; +0xfa, 0x18000b3ea\nmov     rdi, [rsp+178h+var_28]                                         ; +0xff, 0x18000b3ef\nmov     eax, esi                                                       ; +0x107, 0x18000b3f7\nmov     rcx, [rsp+178h+var_38]                                         ; +0x109, 0x18000b3f9\nxor     rcx, rsp; StackCookie                                          ; +0x111, 0x18000b401\ncall    __security_check_cookie                                        ; +0x114, 0x18000b404\nadd     rsp, 158h                                                      ; +0x119, 0x18000b409\npop     r14                                                            ; +0x120, 0x18000b410\npop     rsi                                                            ; +0x122, 0x18000b412\npop     rbp                                                            ; +0x123, 0x18000b413\npop     rbx                                                            ; +0x124, 0x18000b414\nretn                                                                   ; +0x125, 0x18000b415", "xrefs": ["FMOD_ChannelGroup_GetDSPClock @ 0x1800c4f59", "FMOD_Channel_GetDSPClock @ 0x1800c5529", "<???> @ 0x18017df64", "<???> @ 0x18017df74", "<???> @ 0x180194348", "<???> @ 0x1801f66f0"], "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"}