//
// sub_1400696C0 from 0x1400696c0 to 0x14006972d (109 bytes)
//
// 5 xrefs:
// > FMODAudioEngine::updateChannelTweens @ 0x14005f48b
// > FMODAudioEngine::updateChannelTweens @ 0x14005f4b2
// > EnterEffectInstance::updateTransitions @ 0x14020a8c9
// > EnterEffectInstance::updateTransitions @ 0x14020a8f2
// > ??> @ 0x1409111d4
//
// 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:47 +0000
//
__int64 **__fastcall sub_1400696C0(__int64 a1, __int64 *a2)
{
__int64 *i; // rbx
__int64 *v4; // rax
__int64 *v5; // rcx
void *v6; // rax
i = (__int64 *)a2[2];
v4 = a2;
if ( *((_BYTE *)i + 25) )
{
for ( i = (__int64 *)a2[1]; !*((_BYTE *)i + 25); i = (__int64 *)i[1] )
{
if ( v4 != (__int64 *)i[2] )
break;
v4 = i;
}
}
else
{
v5 = (__int64 *)*i;
if ( !*(_BYTE *)(*i + 25) )
{
do
{
i = v5;
v5 = (__int64 *)*v5;
}
while ( !*((_BYTE *)v5 + 25) );
}
}
v6 = (void *)sub_14006A9D0(a1, a2);
j_j_free(v6);
return (__int64 **)i;
}