//
// LevelEditorLayer::addObjectFromVector from 0x7a0b08 to 0x7a0bc0 (184 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::createObjectsFromString @ 0x7a0f4c
// > LevelEditorLayer::createObjectsFromSetup @ 0x7ae5e0
// > ??> @ 0xf8038
//
// 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:53:39 +0000
//
GameObject *__fastcall LevelEditorLayer::addObjectFromVector(LevelEditorLayer *a1, __int64 *a2, __int64 *a3)
{
__int64 v4; // x0
GameObject *v5; // x19
int v6; // w0
GameObject *result; // x0
v4 = GameObject::objectFromVector(a2, a3, (__int64)a1, 0);
v5 = (GameObject *)v4;
if ( !v4 )
return nullptr;
v6 = *(_DWORD *)(v4 + 1028);
if ( v6 != 1329 )
{
if ( v6 != 142 )
{
LABEL_4:
(*(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);
(*(void (__fastcall **)(LevelEditorLayer *, GameObject *))(*(_QWORD *)a1 + 1344LL))(a1, v5);
LevelEditorLayer::addSpecial(a1, v5);
return v5;
}
return nullptr;
}
result = nullptr;
if ( *((_DWORD *)a1 + 3539) - *((_DWORD *)a1 + 3540) <= 2 )
goto LABEL_4;
return result;
}