//
// GJBaseGameLayer::generateEnterEasingBuffer from 0x9c6d84 to 0x9c6ed0 (332 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::generateEnterEasingBuffers @ 0x9c6ef0
// > GJBaseGameLayer::generateEnterEasingBuffers @ 0x9c6f04
// > ??> @ 0xa6b88
//
// 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 12:58:33 +0000
//
__int64 __fastcall GJBaseGameLayer::generateEnterEasingBuffer(void **this, unsigned int a2, float a3)
{
__int64 result; // x0
unsigned int v7; // w19
int v8; // w27
float *v9; // x0
float EasedValue; // s0
unsigned __int64 v11; // x2
int v12; // [xsp+70h] [xbp+70h] BYREF
float v13; // [xsp+74h] [xbp+74h] BYREF
result = GJBaseGameLayer::getEnterEasingKey((GJBaseGameLayer *)this, a2, a3);
v12 = result;
if ( (result & 0x80000000) == 0 )
{
if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
this + 1520,
&v12) )
{
return *(unsigned int *)std::unordered_map::operator[]((__int64)(this + 1520), &v12);
}
else
{
*(_DWORD *)std::unordered_map::operator[]((__int64)(this + 1520), &v12) = *((_DWORD *)this + 3050);
v7 = *((_DWORD *)this + 3050);
v8 = v7;
do
{
EasedValue = GameToolbox::getEasedValue((GameToolbox *)a2, (float)(int)(v8 - v7) / 100.0, a3);
v11 = (unsigned __int64)*(this + 1519);
v9 = (float *)*(this + 1518);
v13 = EasedValue;
if ( (unsigned __int64)v9 < v11 )
{
if ( v9 )
{
*v9 = EasedValue;
v9 = (float *)*(this + 1518);
}
*(this + 1518) = v9 + 1;
}
else
{
std::vector::__push_back_slow_path(this + 1517, &v13);
}
++v8;
++*((_DWORD *)this + 3050);
}
while ( v8 <= (int)(v7 + 100) );
return v7;
}
}
return result;
}