//
// LevelEditorLayer::addObjectFromVector from 0x1000aea80 to 0x1000aeb00 (128 bytes)
//
// 0 xrefs:
//
// 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 12:20:19 +0000
//
_DWORD *__fastcall LevelEditorLayer::addObjectFromVector(_DWORD *a1, __int64 a2, __int64 a3)
{
_DWORD *v3; // rax
int v4; // ecx
_DWORD *v6; // r14
v3 = (_DWORD *)GameObject::objectFromVector(a2, a3, a1, 0);
if ( !v3 )
return nullptr;
v4 = v3[257];
if ( v4 == 142 || v4 == 1329 && a1[3539] - a1[3540] > 2 )
return nullptr;
v6 = v3;
(*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0);
(*(void (__fastcall **)(_DWORD *, _DWORD *))(*(_QWORD *)a1 + 1344LL))(a1, v6);
LevelEditorLayer::addSpecial(a1, v6);
return v6;
}