//
// LevelEditorLayer::setObjectCount from 0x365a30 to 0x365a68 (56 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x36a96e
// > LevelEditorLayer::removeAllObjects @ 0x36ac8a
// > LevelEditorLayer::addSpecial @ 0x370a44
// > LevelEditorLayer::init @ 0x3764e2
//
// 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
//
void LevelEditorLayer::setObjectCount(LevelEditorLayer *a1, int a2)
{
int v4; // s15
a1->m_objectCount.value = a2;
v4 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);
a1->m_objectCount.seed = v4;
a1->m_objectCount.random = v4 + a2;
}