//
// EditorUI::getXMin from 0x48483c to 0x484912 (214 bytes)
//
// 2 xrefs:
// > EditorUI::xPosFromValue @ 0x48492e
// > EditorUI::valueFromXPos @ 0x4849fe
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:49:24 +0000
//
float __fastcall EditorUI::getXMin(EditorUI *this, int a2)
{
const cocos2d::CCPoint *v4; // r0
cocos2d::CCDirector *v5; // r0
cocos2d::CCDirector *v6; // r0
float v7; // r0
const cocos2d::CCPoint *v8; // r9
_BYTE v10[8]; // [sp+4h] [bp-10h] BYREF
float v11[2]; // [sp+Ch] [bp-8h] BYREF
float v12[2]; // [sp+14h] [bp+0h] BYREF
_BYTE v13[8]; // [sp+1Ch] [bp+8h] BYREF
v4 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(*((_DWORD *)this + 236) + 2436) + 96))(
*(_DWORD *)(*((_DWORD *)this + 236) + 2436),
a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v4);
v5 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, float *))(**(_DWORD **)(*((_DWORD *)this + 236) + 2436) + 92))(
*(_DWORD *)(*((_DWORD *)this + 236) + 2436),
&flt_D2B938);
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);
v7 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v6));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v7, *((float *)this + 157));
v8 = *(const cocos2d::CCPoint **)(*((_DWORD *)this + 236) + 2436);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (float)((float)a2 * 30.0) - 30.0, 60.0);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v12, v8);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v13, *((const cocos2d::CCPoint **)this + 236));
cocos2d::CCPoint::operator=(v12, v13);
(*(void (__fastcall **)(_DWORD, _BYTE *))(**(_DWORD **)(*((_DWORD *)this + 236) + 2436) + 92))(
*(_DWORD *)(*((_DWORD *)this + 236) + 2436),
v10);
return v11[0] - v12[0];
}