//
// sub_140066E20 from 0x140066e20 to 0x140066e96 (118 bytes)
//
// 4 xrefs:
// > FMODAudioEngine::playEffectAdvanced @ 0x14005fc47
// > ??> @ 0x140888b04
// > ??> @ 0x140888b14
// > ??> @ 0x140910f70
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:46 +0000
//
__int64 __fastcall sub_140066E20(__int64 a1, _QWORD *a2)
{
_QWORD *v2; // r10
unsigned __int64 v3; // r11
__int64 v4; // rbx
__int64 v5; // r9
unsigned __int64 i; // r8
__int64 v7; // rax
_BYTE v9[24]; // [rsp+20h] [rbp-18h] BYREF
v2 = a2;
if ( a2[3] > 0xFu )
v2 = (_QWORD *)*a2;
v3 = a2[2];
v4 = 0;
v5 = 0xCBF29CE484222325uLL;
for ( i = 0; i < v3; v5 = 0x100000001B3LL * (v7 ^ v5) )
v7 = *((unsigned __int8 *)v2 + i++);
LOBYTE(v4) = *(_QWORD *)(sub_140067710(a1, v9, a2, v5) + 8) != 0;
return v4;
}