//
// LevelEditorLayer::quickUpdateAllPositions from 0x1403fe590 to 0x1403fe70b (379 bytes)
//
// 6 xrefs:
// > LevelEditorLayer::onPausePlaytest @ 0x1403ffbdb
// > LevelEditorLayer::onStopPlaytest @ 0x14040012b
// > ??> @ 0x1408c67e4
// > ??> @ 0x1408c67f4
// > ??> @ 0x1409258f8
// > ??> @ 0x140925904
//
// 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:31:53 +0000
//
__int64 __fastcall LevelEditorLayer::quickUpdateAllPositions(_QWORD *a1)
{
__int64 v1; // rdx
int v2; // r8d
__int64 result; // rax
__int64 v5; // r15
_QWORD *v6; // rcx
__int64 v7; // rax
__int64 v8; // rbp
__int64 v9; // r12
_QWORD *v10; // r14
__int64 v11; // rbx
__int64 v12; // rsi
__int64 v13; // rdi
__int64 v14; // rcx
int v15; // [rsp+60h] [rbp+8h]
char v16; // [rsp+68h] [rbp+10h] BYREF
v1 = a1[1747];
v2 = 0;
v15 = 0;
result = (a1[1748] - v1) >> 3;
if ( result )
{
v5 = 0;
do
{
v6 = *(_QWORD **)(v5 + v1);
if ( v6 )
v7 = (__int64)(v6[1] - *v6) >> 3;
else
LODWORD(v7) = -1;
v8 = 0;
v9 = (int)v7;
if ( (int)v7 > 0 )
{
do
{
v10 = *(_QWORD **)(**(_QWORD **)(v5 + a1[1747]) + 8 * v8);
if ( v10 )
{
v11 = 0;
v12 = *(int *)(**(_QWORD **)(v5 + a1[1768]) + 4 * v8);
if ( v12 > 0 )
{
do
{
v13 = *(_QWORD *)(*v10 + 8 * v11);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, *(double *)(v13 + 952), *(double *)(v13 + 960));
cocos2d::CCSprite::setPosition((cocos2d::CCSprite *)v13, (const struct cocos2d::CCPoint *)&v16);
v14 = *(_QWORD *)(v13 + 896);
if ( v14 )
{
if ( !*(_BYTE *)(v13 + 874) )
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v14 + 184LL))(v14, &v16);
}
++v11;
}
while ( v11 < v12 );
}
}
++v8;
}
while ( v8 < v9 );
v2 = v15;
}
v1 = a1[1747];
++v2;
v5 += 8;
result = v2;
v15 = v2;
}
while ( v2 < (unsigned __int64)((a1[1748] - v1) >> 3) );
}
return result;
}