//
// sub_1403535F0 from 0x1403535f0 to 0x1403536b4 (196 bytes)
//
// 6 xrefs:
// > GJGameState::controlTweenAction @ 0x14030b3c4
// > GJGameState::updateTweenActions @ 0x14030b515
// > GJBaseGameLayer::controlTriggersInGroup @ 0x140325b90
// > GJEffectManager::updateEffects @ 0x1403662d5
// > ShaderLayer::update @ 0x140623876
// > ??> @ 0x140920450
//
// 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:30:48 +0000
//
_QWORD *__fastcall sub_1403535F0(_QWORD *a1, _QWORD *a2, void **a3)
{
void **v5; // rcx
void **v6; // rax
void *v7; // rax
_QWORD *v8; // rbx
v5 = (void **)(a1[3]
+ 16
* (a1[6]
& (0x100000001B3LL
* (*((unsigned __int8 *)a3 + 19)
^ (0x100000001B3LL
* (*((unsigned __int8 *)a3 + 18)
^ (0x100000001B3LL
* (*((unsigned __int8 *)a3 + 17)
^ (0x100000001B3LL * (*((unsigned __int8 *)a3 + 16) ^ 0xCBF29CE484222325uLL))))))))));
v6 = (void **)*v5;
if ( v5[1] == a3 )
{
if ( v6 == a3 )
{
v7 = (void *)a1[1];
*v5 = v7;
}
else
{
v7 = a3[1];
}
v5[1] = v7;
}
else if ( v6 == a3 )
{
*v5 = *a3;
}
v8 = *a3;
--a1[2];
*(_QWORD *)a3[1] = v8;
v8[1] = a3[1];
j_j_free(a3);
*a2 = v8;
return a2;
}