//
// LevelEditorLayer::getLastObjectX from 0x100361b44 to 0x100361be0 (156 bytes)
//
// 2 xrefs:
// > EditorPauseLayer::init @ 0x10039be48
// > EditorPauseLayer::saveLevel @ 0x10039e3f0
//
// 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 LevelEditorLayer::getLastObjectX(LevelEditorLayer *a1)
{
cocos2d::CCArray *m_objects; // x19
unsigned int v2; // w20
float v3; // s8
__int64 v4; // x21
float v5; // s0
m_objects = a1->m_objects;
if ( !(unsigned int)sub_10024A36C((__int64)m_objects) )
return 0.0;
v2 = 0;
v3 = 0.0;
do
{
v4 = sub_10024A388((__int64)m_objects, v2);
v5 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 192LL))(v4);
if ( v5 > v3 )
v3 = *(float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 192LL))(v4, v5);
++v2;
}
while ( v2 < (unsigned int)sub_10024A36C((__int64)m_objects) );
return v3;
}