//
// PlayLayer::processLoadedMoveActions from 0x1403af1d0 to 0x1403af397 (455 bytes)
//
// 2 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x1403b7a68
// > ??> @ 0x1406d6d04
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void PlayLayer::processLoadedMoveActions(PlayLayer *a1)
{
_BOOL8 v2; // rdx
std::_Vector_val>::pointer Myfirst; // rcx
__int64 *i; // rbx
int v5; // eax
__int64 v6; // rsi
std::_Simple_types::value_type v7; // rdi
cocos2d::ccArray *data; // rsi
__int64 num; // rax
GameObject **arr; // rsi
GameObject **j; // rbp
GameObject *v12; // rdi
double v13; // xmm1_8
_BOOL8 v14; // rdx
__int64 v15; // rax
std::unordered_map> v16; // [rsp+20h] [rbp-68h] BYREF
char v17; // [rsp+90h] [rbp+8h] BYREF
sub_1402650D0((__int64)&v16);
GJEffectManager::getLoadedMoveOffset(a1->m_effectManager, &v16);
for ( i = *(__int64 **)v16._List._Mypair._Myval2._Myhead;
i != (__int64 *)v16._List._Mypair._Myval2._Myhead;
i = (__int64 *)*i )
{
v5 = *((_DWORD *)i + 4);
if ( v5 > 9999 )
v5 = 9999;
if ( v5 < 0 )
v5 = 0;
v6 = (unsigned int)v5;
v7 = a1->m_groups._Mypair._Myval2._Myfirst[v5];
if ( !v7 )
{
v7 = (std::_Simple_types::value_type)cocos2d::CCArray::create(Myfirst);
cocos2d::CCDictionary::setObject(a1->m_groupDict, v7, (unsigned int)v6);
Myfirst = a1->m_groups._Mypair._Myval2._Myfirst;
Myfirst[v6] = v7;
if ( !v7 )
continue;
}
data = v7->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (GameObject **)data->arr;
for ( j = &arr[num - 1]; arr <= j; ++arr )
{
v12 = *arr;
if ( !*arr )
break;
if ( !v12->m_unk530 )
{
v13 = *((double *)i + 4);
if ( !v12->m_tempOffsetXRelated )
v12->m_positionX = *((double *)i + 3) + v12->m_positionX;
v12->m_positionY = v13 + v12->m_positionY;
LOBYTE(v2) = 1;
v12->setObjectRectDirty(v12, v2);
v12->m_isDirty = 1;
LOBYTE(v14) = 1;
v12->setOrientedRectDirty(v12, v14);
a1->updateObjectSection(a1, v12);
v12->m_unk4C4 = -1;
v15 = ((__int64 (__fastcall *)(GameObject *, char *))v12->getRealPosition)(v12, &v17);
cocos2d::CCPoint::operator=(&v12->m_lastPosition, v15);
}
}
}
}
sub_14005D100((__int64)&v16._Vec);
sub_1402652B0((void **)&v16._List._Mypair._Myval2._Myhead);
}