//
// EditorUI::getXMin from 0x68f60c to 0x68f73c (304 bytes)
//
// 3 xrefs:
// > EditorUI::xPosFromValue @ 0x68f75c
// > EditorUI::valueFromXPos @ 0x68f894
// > ??> @ 0xbc4d8
//
// 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
//
float EditorUI::getXMin(EditorUI *a1, int a2)
{
const cocos2d::CCPoint *v4; // x0
cocos2d::CCDirector *v5; // x0
float v6; // s0
float v7; // s2
cocos2d::CCLayer *m_objectLayer; // x24
cocos2d::CCPoint v10; // [xsp+48h] [xbp+48h] BYREF
cocos2d::CCPoint v11; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCPoint v12; // [xsp+58h] [xbp+58h] BYREF
cocos2d::CCPoint v13; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCPoint v14; // 0:kr08_8.8
v4 = a1->m_editorLayer->m_objectLayer->getPosition(a1->m_editorLayer->m_objectLayer);
cocos2d::CCPoint::CCPoint(&v10, v4);
a1->m_editorLayer->m_objectLayer->setPosition(
a1->m_editorLayer->m_objectLayer,
(const cocos2d::CCPoint *)&dword_1242110);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getScreenLeft(v5);
cocos2d::CCPoint::CCPoint(&v11, v6, a1->m_constrainedHeight);
v7 = (float)a2;
m_objectLayer = a1->m_editorLayer->m_objectLayer;
cocos2d::CCPoint::CCPoint(&v13, (float)(v7 * 30.0) + -30.0, 60.0);
cocos2d::CCNode::convertToWorldSpace(m_objectLayer, &v13);
v14 = cocos2d::CCNode::convertToNodeSpace(a1->m_editorLayer, &v12);
cocos2d::CCPoint::operator=(&v12, v14.x, v14.y);
a1->m_editorLayer->m_objectLayer->setPosition(a1->m_editorLayer->m_objectLayer, &v10);
return v11.x - v12.x;
}