//
// EditorUI::getXMin from 0x3814e4 to 0x3815ba (214 bytes)
//
// 2 xrefs:
// > EditorUI::xPosFromValue @ 0x3815d6
// > EditorUI::valueFromXPos @ 0x3816a6
//
// 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; // r0
cocos2d::CCDirector *v5; // r0
float v6; // r0
cocos2d::CCLayer *m_objectLayer; // r9
int v8; // r2
bool v9; // r3
cocos2d::CCPoint v11; // [sp+4h] [bp-10h] BYREF
cocos2d::CCPoint v12; // [sp+Ch] [bp-8h] BYREF
cocos2d::CCPoint v13; // [sp+14h] [bp+0h] BYREF
cocos2d::CCPoint v14; // [sp+1Ch] [bp+8h] BYREF
v4 = (const cocos2d::CCPoint *)((int (__fastcall *)(cocos2d::CCLayer *, int))a1->m_editorLayer->m_objectLayer->getPosition)(
a1->m_editorLayer->m_objectLayer,
a2);
cocos2d::CCPoint::CCPoint(&v11, v4);
a1->m_editorLayer->m_objectLayer->setPosition(a1->m_editorLayer->m_objectLayer, (const cocos2d::CCPoint *)&flt_AC5D38);
v5 = cocos2d::CCDirector::sharedDirector();
v6 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v5));
cocos2d::CCPoint::CCPoint(&v12, v6, a1->m_constrainedHeight);
m_objectLayer = a1->m_editorLayer->m_objectLayer;
cocos2d::CCPoint::CCPoint(&v14, (float)((float)a2 * 30.0) - 30.0, 60.0);
cocos2d::CCNode::convertToWorldSpace(&v13, m_objectLayer, &v14);
cocos2d::CCNode::convertToNodeSpace(&v14, a1->m_editorLayer, &v13);
cocos2d::CCPoint::operator=((PlayerObject *)&v13, COERCE_FLOAT(&v14), v8, v9);
a1->m_editorLayer->m_objectLayer->setPosition(a1->m_editorLayer->m_objectLayer, &v11);
return v12.x - v13.x;
}