//
// EditorUI::getXMin from 0x10002efb0 to 0x10002f0c5 (277 bytes)
//
// 8 xrefs:
// > EditorUI::init @ 0x10000a6ac
// > EditorUI::sliderChanged @ 0x10000b720
// > EditorUI::updateSlider @ 0x10002ab31
// > EditorUI::xPosFromValue @ 0x10002ef23
// > EditorUI::valueFromXPos @ 0x10002f0e3
// > EditorUI::onCreateObject @ 0x100035383
// > EditorUI::updateZoom @ 0x10003db32
// > EditorUI::scrollWheel @ 0x100051826
//
// 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 __fastcall EditorUI::getXMin(EditorUI *a1, int a2)
{
__int64 v3; // rax
double v4; // xmm0_8
cocos2d::CCDirector *v5; // rax
cocos2d::CCLayer *m_objectLayer; // r12
_BYTE v8[8]; // [rsp+8h] [rbp-48h] BYREF
float v9; // [rsp+10h] [rbp-40h] BYREF
float v10; // [rsp+18h] [rbp-38h] BYREF
_BYTE v11[48]; // [rsp+20h] [rbp-30h] BYREF
double v12; // 0:xmm0_8.8
v3 = ((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getPosition)(a1->m_editorLayer->m_objectLayer);
v4 = sub_10028CC60(v8, v3);
((void (__fastcall *)(cocos2d::CCLayer *, __int64 *, double))a1->m_editorLayer->m_objectLayer->setPosition)(
a1->m_editorLayer->m_objectLayer,
&qword_10099EC08,
v4);
v5 = cocos2d::CCDirector::sharedDirector();
*(float *)&v4 = sub_100484D90(v5);
sub_10028CBE0(&v9, *(float *)&v4, a1->m_constrainedHeight);
m_objectLayer = a1->m_editorLayer->m_objectLayer;
sub_10028CBE0(v11, (float)((float)a2 * 30.0) + -30.0, 60.0);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v10, (const cocos2d::CCPoint *)m_objectLayer);
*(cocos2d::CCPoint *)&v12 = cocos2d::CCNode::convertToNodeSpace(
(cocos2d::CCNode *)v11,
(const cocos2d::CCPoint *)a1->m_editorLayer);
sub_10028CC90(&v10, v11);
((void (__fastcall *)(cocos2d::CCLayer *, _BYTE *, double))a1->m_editorLayer->m_objectLayer->setPosition)(
a1->m_editorLayer->m_objectLayer,
v8,
v12);
return v9 - v10;
}