//
// LevelEditorLayer::addObjectFromVector from 0x46e6a8 to 0x46e708 (96 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::createObjectsFromString @ 0x46e95c
// > LevelEditorLayer::createObjectsFromSetup @ 0x475a68
//
// 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:49:02 +0000
//
GameObject *__fastcall LevelEditorLayer::addObjectFromVector(LevelEditorLayer *a1, int *a2, int *a3)
{
GameObject *v4; // r0
GameObject *v5; // r4
int v6; // r3
v4 = (GameObject *)GameObject::objectFromVector(a2, a3, (int)a1, 0);
v5 = v4;
if ( !v4 )
return v5;
v6 = *((_DWORD *)v4 + 223);
if ( v6 == 1329 )
{
if ( *((_DWORD *)a1 + 2947) - *((_DWORD *)a1 + 2948) <= 2 )
goto LABEL_6;
}
else if ( v6 != 142 )
{
LABEL_6:
(*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)v4 + 172))(v4, 0);
(*(void (__fastcall **)(LevelEditorLayer *, GameObject *))(*(_DWORD *)a1 + 672))(a1, v5);
LevelEditorLayer::addSpecial(a1, v5);
return v5;
}
return nullptr;
}