//
// EditorUI::getLimitedPosition from 0x140120110 to 0x14012019e (142 bytes)
//
// 10 xrefs:
// > EditorUI::onCreateObject @ 0x14010f6af
// > EditorUI::doPasteObjects @ 0x14011353c
// > EditorUI::createPrefab @ 0x140117b0d
// > EditorUI::applySpecialOffset @ 0x140122732
// > EditorUI::findSnapObject_1 @ 0x1401234d0
// > EditorUI::findSnapObject_1 @ 0x1401236cd
// > EditorUI::ccTouchMoved @ 0x140124439
// > EditorUI::ccTouchEnded @ 0x140124980
// > SetupSmartBlockLayer::onPasteTemplate @ 0x140457fcd
// > ??> @ 0x1406c9600
//
// 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
//
cocos2d::CCPoint EditorUI::getLimitedPosition(EditorUI *a1, cocos2d::CCPoint a2)
{
float *v2; // r8
LevelEditorLayer *m_editorLayer; // rax
float v5; // xmm2_4
float v6; // xmm1_4
LevelSettingsObject *m_levelSettings; // rcx
int v8; // eax
m_editorLayer = a1->m_editorLayer;
v5 = fmaxf(-3000.0, v2[1]);
v6 = fmaxf(-3000.0, *v2);
v2[1] = v5;
*v2 = fminf(240000.0, v6);
m_levelSettings = m_editorLayer->m_levelSettings;
v8 = 80;
if ( m_levelSettings->m_dynamicLevelHeight )
v8 = 1000;
v2[1] = fminf((float)((float)v8 * 30.0) + 90.0, v5);
cocos2d::CCPoint::CCPoint(*(cocos2d::CCPoint **)&a2);
return a2;
}