{"type": "func", "start": 6443087840, "end": 6443087892, "name": "sub_18009B7E0", "pseudocode": "// \n// sub_18009B7E0 from 0x18009b7e0 to 0x18009b814 (52 bytes)\n// \n// 6 xrefs:\n// > sub_180018DF0 @ 0x18001ba39\n// > FMOD::DSP::setBypass @ 0x1800a36f1\n// > sub_1800C9580 @ 0x1800c96cc\n// > sub_1800C9580 @ 0x1800c970a\n// > sub_1800C9580 @ 0x1800c9724\n// > sub_1800C9580 @ 0x1800c973d\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 sub_18009B7E0(__int64 a1, char a2)\n{\n  if ( a2 != (*(_DWORD *)(a1 + 100) & 1) )\n    *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 168) + 67512LL) + 48LL) = 1;\n  if ( a2 )\n    _InterlockedOr((volatile signed __int32 *)(a1 + 100), 1u);\n  else\n    _InterlockedAnd((volatile signed __int32 *)(a1 + 100), 0xFFFFFFFE);\n  return 0;\n}", "assembly": "; \n; sub_18009B7E0 from 0x18009b7e0 to 0x18009b814 (52 bytes)\n; \n; 6 xrefs:\n; > sub_180018DF0 @ 0x18001ba39\n; > FMOD::DSP::setBypass @ 0x1800a36f1\n; > sub_1800C9580 @ 0x1800c96cc\n; > sub_1800C9580 @ 0x1800c970a\n; > sub_1800C9580 @ 0x1800c9724\n; > sub_1800C9580 @ 0x1800c973d\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     eax, [rcx+64h]                                                 ; +0x0, 0x18009b7e0\nnop                                                                    ; +0x3, 0x18009b7e3\nand     al, 1                                                          ; +0x4, 0x18009b7e4\ncmp     dl, al                                                         ; +0x6, 0x18009b7e6\njz      short loc_18009B800                                            ; +0x8, 0x18009b7e8\nmov     rax, [rcx+0A8h]                                                ; +0xa, 0x18009b7ea\nmov     r8, [rax+107B8h]                                               ; +0x11, 0x18009b7f1\nmov     dword ptr [r8+30h], 1                                          ; +0x18, 0x18009b7f8\ntest    dl, dl                                                         ; +0x20, 0x18009b800\njz      short loc_18009B80C                                            ; +0x22, 0x18009b802\nlock or dword ptr [rcx+64h], 1                                         ; +0x24, 0x18009b804\nxor     eax, eax                                                       ; +0x29, 0x18009b809\nretn                                                                   ; +0x2b, 0x18009b80b\nlock and dword ptr [rcx+64h], 0FFFFFFFEh                               ; +0x2c, 0x18009b80c\nxor     eax, eax                                                       ; +0x31, 0x18009b811\nretn                                                                   ; +0x33, 0x18009b813", "xrefs": ["sub_180018DF0 @ 0x18001ba39", "FMOD::DSP::setBypass @ 0x1800a36f1", "sub_1800C9580 @ 0x1800c96cc", "sub_1800C9580 @ 0x1800c970a", "sub_1800C9580 @ 0x1800c9724", "sub_1800C9580 @ 0x1800c973d"], "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"}