//
// sub_14005F970 from 0x14005f970 to 0x14005f9e6 (118 bytes)
//
// 4 xrefs:
// > FMODAudioEngine::playEffectAdvanced @ 0x140057087
// > ??> @ 0x1406655fc
// > ??> @ 0x14066560c
// > ??> @ 0x1406c58ec
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_14005F970(__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_140063040(a1, v9, a2, v5) + 8) != 0;
return v4;
}