//
// PlayLayer::processLoadedMoveActions from 0x6f4ee4 to 0x6f50b8 (468 bytes)
//
// 2 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x70f82c
// > ??> @ 0xb20f0
//
// 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:51:50 +0000
//
__int64 __fastcall PlayLayer::processLoadedMoveActions(PlayLayer *this)
{
__int64 v2; // x0
void *v3; // x21
__int64 Group; // x0
unsigned int *v5; // x0
GameObject **v6; // x20
GameObject **i; // x22
GameObject *v8; // x19
_QWORD *v9; // x0
_QWORD *v10; // x19
void *v11; // x0
__int64 v13; // x2
__int64 v14; // x1
__int64 v15; // [xsp+68h] [xbp+68h] BYREF
void *v16[2]; // [xsp+70h] [xbp+70h] BYREF
void *v17; // [xsp+80h] [xbp+80h]
__int64 v18; // [xsp+88h] [xbp+88h]
float v19; // [xsp+90h] [xbp+90h]
v16[0] = nullptr;
v2 = *((_QWORD *)this + 269);
v16[1] = nullptr;
v17 = nullptr;
v18 = 0;
v19 = 1.0;
GJEffectManager::getLoadedMoveOffset(v2, v16);
v3 = v17;
if ( v17 )
{
do
{
Group = GJBaseGameLayer::getGroup(this, *((_DWORD *)v3 + 4));
if ( Group )
{
v5 = *(unsigned int **)(Group + 56);
if ( *v5 )
{
v6 = *((GameObject ***)v5 + 2);
for ( i = &v6[*v5 - 1]; i >= v6; ++v6 )
{
v8 = *v6;
if ( !*v6 )
break;
if ( !*((_BYTE *)v8 + 1344) )
{
GameObject::addToTempOffset(*v6, *((double *)v3 + 3), *((double *)v3 + 4));
(*(void (__fastcall **)(GameObject *, __int64))(*(_QWORD *)v8 + 1776LL))(v8, 1);
v13 = *(_QWORD *)v8;
*((_BYTE *)v8 + 840) = 1;
(*(void (__fastcall **)(GameObject *, __int64))(v13 + 1792))(v8, 1);
(*(void (__fastcall **)(PlayLayer *, GameObject *))(*(_QWORD *)this + 1368LL))(this, v8);
v14 = *(_QWORD *)v8;
*((_DWORD *)v8 + 309) = -1;
(*(void (__fastcall **)(__int64 *__return_ptr, GameObject *))(v14 + 1360))(&v15, v8);
GameObject::setLastPosition(v8, (const cocos2d::CCPoint *)&v15);
}
}
}
}
v3 = *(void **)v3;
}
while ( v3 );
v9 = v17;
if ( v17 )
{
do
{
v10 = (_QWORD *)*v9;
operator delete(v9);
v9 = v10;
}
while ( v10 );
}
}
v11 = v16[0];
v16[0] = nullptr;
if ( v11 )
operator delete(v11);
return _stack_chk_guard;
}