//
// LevelEditorLayer::addObjectFromVector from 0x6709c0 to 0x670a78 (184 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::createObjectsFromSetup @ 0x671044
// > LevelEditorLayer::createObjectsFromString @ 0x671978
// > ??> @ 0x93f30
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
GameObject *LevelEditorLayer::addObjectFromVector(
LevelEditorLayer *a1,
std::vector *a2,
std::vector *a3)
{
GameObject *v4; // x0
GameObject *v5; // x19
int m_objectID; // w0
GameObject *result; // x0
v4 = GameObject::objectFromVector(a2, a3, a1, 0);
v5 = v4;
if ( !v4 )
return nullptr;
m_objectID = v4->m_objectID;
if ( m_objectID != 1329 )
{
if ( m_objectID != 142 )
{
LABEL_4:
v5->setVisible(v5, 0);
a1->addToSection(a1, v5);
LevelEditorLayer::addSpecial(a1, v5);
return v5;
}
return nullptr;
}
result = nullptr;
if ( a1->m_coinCount.random - a1->m_coinCount.seed <= 2 )
goto LABEL_4;
return result;
}