//
// EnterEffectInstance::updateTransitions from 0xba2ee4 to 0xba300c (296 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::updateEnterEffects @ 0x99a8ec
// > GJBaseGameLayer::updateEnterEffects @ 0x99a928
// > GJBaseGameLayer::processAreaEffects @ 0x9d6f40
// > ??> @ 0xdc258
//
// This function is hookable on this platform (idp: arm, 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 13:02:47 +0000
//
__int64 __fastcall EnterEffectInstance::updateTransitions(__int64 **this, float a2, GJBaseGameLayer *a3)
{
__int64 *i; // x20
__int64 **v6; // x22
GJBaseGameLayer *v8; // x0
char *v9; // x19
float v10; // s1
float v11; // s0
_QWORD *v12; // x19
__int64 *v13; // x0
int v14; // w1
__int64 result; // x0
float EnterEasingValue; // s0
v6 = this + 1;
for ( i = *this; ; i = std::__tree_next *>(i) )
{
v8 = a3;
v9 = (char *)i + 28;
if ( i == (__int64 *)v6 )
break;
while ( 1 )
{
v10 = *((float *)v9 + 4);
v11 = a2 + *((float *)v9 + 5);
*((float *)v9 + 5) = v11;
if ( v11 < v10 )
break;
EnterEffectInstance::setValue((float *)this, *((_DWORD *)v9 + 1), *((float *)v9 + 3));
v12 = std::__tree_next *>(i);
if ( i == *this )
*this = v12;
*(this + 2) = (__int64 *)((char *)*(this + 2) - 1);
std::__tree_remove *>(*v6, i);
v13 = i;
i = v12;
v9 = (char *)v12 + 28;
operator delete(v13);
v8 = a3;
if ( i == (__int64 *)v6 )
goto LABEL_7;
}
EnterEasingValue = GJBaseGameLayer::getEnterEasingValue(
v8,
v11 / v10,
*((_DWORD *)v9 + 6),
*((float *)v9 + 7),
*((_DWORD *)v9 + 8));
EnterEffectInstance::setValue(
(float *)this,
*((_DWORD *)v9 + 1),
*((float *)v9 + 2) + (float)(EnterEasingValue * (float)(*((float *)v9 + 3) - *((float *)v9 + 2))));
}
LABEL_7:
v14 = *((_DWORD *)this + 39);
result = *((unsigned int *)this + 40);
*((_DWORD *)this + 34) = *((_DWORD *)this + 38);
*((_DWORD *)this + 35) = v14;
*((_DWORD *)this + 36) = result;
return result;
}