//
// LevelEditorLayer::updateDisabledObjectsLastPos from 0x46a684 to 0x46a744 (192 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:59 +0000
//
void __fastcall LevelEditorLayer::updateDisabledObjectsLastPos(LevelEditorLayer *this, cocos2d::CCArray *a2, int a3)
{
_DWORD *v4; // r2
int *v5; // r5
char *v6; // r8
int *v7; // r6
int v8; // r3
int v9; // t1
int v10; // r1
int v11; // r1
int v12; // r2
_DWORD *v13; // r1
_DWORD v14[3]; // [sp+0h] [bp-Ch] BYREF
v14[0] = this;
v14[1] = a2;
v14[2] = a3;
if ( !*((_BYTE *)this + 11571) )
{
if ( a2 )
{
v4 = *((_DWORD **)a2 + 13);
if ( *v4 )
{
v5 = (int *)v4[3];
v6 = (char *)this + 2124;
v7 = &v5[*v4 - 1];
while ( v5 <= v7 )
{
v9 = *v5++;
v8 = v9;
if ( !v9 )
break;
if ( *(_BYTE *)(v8 + 1110) )
{
v10 = *((_DWORD *)this + 202);
if ( *(_DWORD *)(v8 + 1072) != v10 )
{
*(_DWORD *)(v8 + 1072) = v10;
v11 = *((_DWORD *)this + 559);
v12 = *((_DWORD *)this + 564);
v14[0] = v8;
if ( v12 > v11 )
{
*(_DWORD *)(*((_DWORD *)this + 531) + 4 * v11) = v8;
}
else
{
v13 = *((_DWORD **)this + 532);
if ( v13 == *((_DWORD **)this + 533) )
{
std::vector::__push_back_slow_path((int)v6, v14);
}
else
{
if ( v13 )
*v13 = v8;
*((_DWORD *)this + 532) += 4;
}
++*((_DWORD *)this + 564);
}
++*((_DWORD *)this + 559);
}
}
}
}
}
}
}