{"type": "func", "start": 6443105248, "end": 6443105470, "name": "FMOD::Channel::getCurrentSound", "pseudocode": "// \n// FMOD::Channel::getCurrentSound from 0x18009fbe0 to 0x18009fcbe (222 bytes)\n// \n// 3 xrefs:\n// > FMOD_Channel_GetCurrentSound @ 0x1800c5509\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fada0\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::Channel::getCurrentSound(__int64 a1, _QWORD *a2)\n{\n  int v3; // esi\n  unsigned int v4; // ebx\n  __int64 v6; // [rsp+30h] [rbp-128h] BYREF\n  __int64 v7; // [rsp+38h] [rbp-120h] BYREF\n  _BYTE v8[256]; // [rsp+40h] [rbp-118h] BYREF\n\n  v6 = 0;\n  v3 = a1;\n  v4 = FMOD::ChannelI::validate(a1, &v7, &v6);\n  if ( v4 )\n  {\n    if ( a2 )\n      *a2 = 0;\n  }\n  else\n  {\n    v4 = sub_1800CD830(v7, a2);\n    if ( !v4 )\n      goto LABEL_7;\n  }\n  if ( *((char *)off_1801AED20 + 16) < 0 )\n  {\n    sub_1800F3230(v8, 256, a2);\n    sub_1800B20E0(v4, 2, v3, (unsigned int)\"Channel::getCurrentSound\", (__int64)v8);\n  }\nLABEL_7:\n  if ( v6 )\n    sub_180102320();\n  return v4;\n}", "assembly": "; \n; FMOD::Channel::getCurrentSound from 0x18009fbe0 to 0x18009fcbe (222 bytes)\n; \n; 3 xrefs:\n; > FMOD_Channel_GetCurrentSound @ 0x1800c5509\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fada0\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     [rsp+arg_10], rbx                                              ; +0x0, 0x18009fbe0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x18009fbe5\npush    rdi                                                            ; +0xa, 0x18009fbea\nsub     rsp, 150h                                                      ; +0xb, 0x18009fbeb\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x18009fbf2\nxor     rax, rsp                                                       ; +0x19, 0x18009fbf9\nmov     [rsp+158h+var_18], rax                                         ; +0x1c, 0x18009fbfc\nmov     rdi, rdx                                                       ; +0x24, 0x18009fc04\nmov     [rsp+158h+var_128], 0                                          ; +0x27, 0x18009fc07\nlea     rdx, [rsp+158h+var_120]                                        ; +0x30, 0x18009fc10\nmov     rsi, rcx                                                       ; +0x35, 0x18009fc15\nlea     r8, [rsp+158h+var_128]                                         ; +0x38, 0x18009fc18\ncall    ?validate@ChannelI@FMOD@@SA?AW4FMOD_RESULT@@PEAVChannel@2@PEAPEAV12@PEAVSystemLockScope@2@@Z; FMOD::ChannelI::validate(FMOD::Channel *,FMOD::ChannelI * *,FMOD::SystemLockScope *) ; +0x3d, 0x18009fc1d\nmov     ebx, eax                                                       ; +0x42, 0x18009fc22\ntest    eax, eax                                                       ; +0x44, 0x18009fc24\njz      short loc_18009FC36                                            ; +0x46, 0x18009fc26\ntest    rdi, rdi                                                       ; +0x48, 0x18009fc28\njz      short loc_18009FC49                                            ; +0x4b, 0x18009fc2b\nmov     qword ptr [rdi], 0                                             ; +0x4d, 0x18009fc2d\njmp     short loc_18009FC49                                            ; +0x54, 0x18009fc34\nmov     rcx, [rsp+158h+var_120]                                        ; +0x56, 0x18009fc36\nmov     rdx, rdi                                                       ; +0x5b, 0x18009fc3b\ncall    sub_1800CD830                                                  ; +0x5e, 0x18009fc3e\nmov     ebx, eax                                                       ; +0x63, 0x18009fc43\ntest    eax, eax                                                       ; +0x65, 0x18009fc45\njz      short loc_18009FC88                                            ; +0x67, 0x18009fc47\nmov     rax, cs:off_1801AED20                                          ; +0x69, 0x18009fc49\ntest    byte ptr [rax+10h], 80h                                        ; +0x70, 0x18009fc50\njz      short loc_18009FC88                                            ; +0x74, 0x18009fc54\nmov     r8, rdi                                                        ; +0x76, 0x18009fc56\nlea     rcx, [rsp+158h+var_118]                                        ; +0x79, 0x18009fc59\nmov     edx, 100h                                                      ; +0x7e, 0x18009fc5e\ncall    sub_1800F3230                                                  ; +0x83, 0x18009fc63\nlea     rax, [rsp+158h+var_118]                                        ; +0x88, 0x18009fc68\nmov     r8, rsi                                                        ; +0x8d, 0x18009fc6d\nlea     r9, aChannelGetcurr; \"Channel::getCurrentSound\"                ; +0x90, 0x18009fc70\nmov     [rsp+158h+var_138], rax                                        ; +0x97, 0x18009fc77\nmov     edx, 2                                                         ; +0x9c, 0x18009fc7c\nmov     ecx, ebx                                                       ; +0xa1, 0x18009fc81\ncall    sub_1800B20E0                                                  ; +0xa3, 0x18009fc83\nmov     rcx, [rsp+158h+var_128]                                        ; +0xa8, 0x18009fc88\ntest    rcx, rcx                                                       ; +0xad, 0x18009fc8d\njz      short loc_18009FC97                                            ; +0xb0, 0x18009fc90\ncall    sub_180102320                                                  ; +0xb2, 0x18009fc92\nmov     eax, ebx                                                       ; +0xb7, 0x18009fc97\nmov     rcx, [rsp+158h+var_18]                                         ; +0xb9, 0x18009fc99\nxor     rcx, rsp; StackCookie                                          ; +0xc1, 0x18009fca1\ncall    __security_check_cookie                                        ; +0xc4, 0x18009fca4\nlea     r11, [rsp+158h+var_8]                                          ; +0xc9, 0x18009fca9\nmov     rbx, [r11+20h]                                                 ; +0xd1, 0x18009fcb1\nmov     rsi, [r11+28h]                                                 ; +0xd5, 0x18009fcb5\nmov     rsp, r11                                                       ; +0xd9, 0x18009fcb9\npop     rdi                                                            ; +0xdc, 0x18009fcbc\nretn                                                                   ; +0xdd, 0x18009fcbd", "xrefs": ["FMOD_Channel_GetCurrentSound @ 0x1800c5509", "<???> @ 0x180194348", "<???> @ 0x1801fada0"], "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"}