//
// LevelEditorLayer::getLastObjectX from 0x1402de960 to 0x1402de9fd (157 bytes)
//
// 5 xrefs:
// > EditorPauseLayer::init @ 0x1400da1df
// > EditorPauseLayer::saveLevel @ 0x1400dd9f9
// > ??> @ 0x14068eb3c
// > ??> @ 0x14068eb4c
// > ??> @ 0x1406d3440
//
// 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 LevelEditorLayer::getLastObjectX(LevelEditorLayer *a1)
{
cocos2d::CCArray *m_objects; // rsi
unsigned int v2; // ebx
float v3; // xmm6_4
struct cocos2d::CCObject *v4; // rdi
m_objects = a1->m_objects;
v2 = 0;
v3 = 0.0;
if ( !cocos2d::CCArray::count(m_objects) )
return 0.0;
do
{
v4 = cocos2d::CCArray::objectAtIndex(m_objects, v2);
if ( *(float *)((__int64 (__fastcall *)(struct cocos2d::CCObject *))v4->__vftable[2].getTag)(v4) > v3 )
v3 = *(float *)((__int64 (__fastcall *)(struct cocos2d::CCObject *))v4->__vftable[2].getTag)(v4);
++v2;
}
while ( v2 < cocos2d::CCArray::count(m_objects) );
return v3;
}