{"type": "func", "start": 6443263552, "end": 6443263642, "name": "FMOD_Sound_GetOpenState", "pseudocode": "// \n// FMOD_Sound_GetOpenState from 0x1800c6640 to 0x1800c669a (90 bytes)\n// \n// 3 xrefs:\n// > FMOD5_Sound_GetOpenState @ 0x1800f4790\n// > <???> @ 0x180194348\n// > <???> @ 0x1801fe010\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_Sound_GetOpenState(__int64 a1, __int64 a2, __int64 a3, _DWORD *a4, _DWORD *a5)\n{\n  __int64 result; // rax\n  int v7; // edx\n  _BYTE v8[24]; // [rsp+30h] [rbp-18h] BYREF\n  char v9; // [rsp+50h] [rbp+8h] BYREF\n\n  if ( !a1 )\n    return 31;\n  result = FMOD::Sound::getOpenState(a1, a2, a3, (__int64)&v9, (__int64)v8);\n  if ( !(_DWORD)result )\n  {\n    v7 = 0;\n    if ( a4 )\n      *a4 = v9 != 0;\n    if ( a5 )\n    {\n      LOBYTE(v7) = v8[0] != 0;\n      *a5 = v7;\n    }\n  }\n  return result;\n}", "assembly": "; \n; FMOD_Sound_GetOpenState from 0x1800c6640 to 0x1800c669a (90 bytes)\n; \n; 3 xrefs:\n; > FMOD5_Sound_GetOpenState @ 0x1800f4790\n; > <???> @ 0x180194348\n; > <???> @ 0x1801fe010\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, 0x1800c6640\nsub     rsp, 40h                                                       ; +0x2, 0x1800c6642\nmov     rbx, r9                                                        ; +0x6, 0x1800c6646\ntest    rcx, rcx                                                       ; +0x9, 0x1800c6649\njnz     short loc_1800C6657                                            ; +0xc, 0x1800c664c\nlea     eax, [rcx+1Fh]                                                 ; +0xe, 0x1800c664e\nadd     rsp, 40h                                                       ; +0x11, 0x1800c6651\npop     rbx                                                            ; +0x15, 0x1800c6655\nretn                                                                   ; +0x16, 0x1800c6656\nlea     rax, [rsp+48h+var_18]                                          ; +0x17, 0x1800c6657\nlea     r9, [rsp+48h+arg_0]                                            ; +0x1c, 0x1800c665c\nmov     [rsp+48h+var_28], rax                                          ; +0x21, 0x1800c6661\ncall    ?getOpenState@Sound@FMOD@@QEAA?AW4FMOD_RESULT@@PEAW4FMOD_OPENSTATE@@PEAIPEA_N2@Z; FMOD::Sound::getOpenState(FMOD_OPENSTATE *,uint *,bool *,bool *) ; +0x26, 0x1800c6666\ntest    eax, eax                                                       ; +0x2b, 0x1800c666b\njnz     short loc_1800C6694                                            ; +0x2d, 0x1800c666d\nxor     edx, edx                                                       ; +0x2f, 0x1800c666f\ntest    rbx, rbx                                                       ; +0x31, 0x1800c6671\njz      short loc_1800C6681                                            ; +0x34, 0x1800c6674\nmov     ecx, edx                                                       ; +0x36, 0x1800c6676\ncmp     [rsp+48h+arg_0], cl                                            ; +0x38, 0x1800c6678\nsetnz   cl                                                             ; +0x3c, 0x1800c667c\nmov     [rbx], ecx                                                     ; +0x3f, 0x1800c667f\nmov     rcx, [rsp+48h+arg_20]                                          ; +0x41, 0x1800c6681\ntest    rcx, rcx                                                       ; +0x46, 0x1800c6686\njz      short loc_1800C6694                                            ; +0x49, 0x1800c6689\ncmp     [rsp+48h+var_18], dl                                           ; +0x4b, 0x1800c668b\nsetnz   dl                                                             ; +0x4f, 0x1800c668f\nmov     [rcx], edx                                                     ; +0x52, 0x1800c6692\nadd     rsp, 40h                                                       ; +0x54, 0x1800c6694\npop     rbx                                                            ; +0x58, 0x1800c6698\nretn                                                                   ; +0x59, 0x1800c6699", "xrefs": ["FMOD5_Sound_GetOpenState @ 0x1800f4790", "<???> @ 0x180194348", "<???> @ 0x1801fe010"], "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"}