//
// LevelEditorLayer::getLastObjectX from 0x78cb34 to 0x78cbdc (168 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateLevelSaveInfo @ 0x7a492c
// > EditorPauseLayer::init @ 0x8b747c
// > ??> @ 0xc6478
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:53:27 +0000
//
float __fastcall LevelEditorLayer::getLastObjectX(LevelEditorLayer *this)
{
unsigned int v1; // w19
float v2; // s8
cocos2d::CCArray *AllObjects; // x21
bool v4; // cf
unsigned int v5; // w1
cocos2d::CCArray *v6; // x0
__int64 v7; // x20
v1 = 0;
v2 = 0.0;
AllObjects = (cocos2d::CCArray *)LevelEditorLayer::getAllObjects(this);
while ( 1 )
{
v4 = v1 >= (unsigned int)cocos2d::CCArray::count(AllObjects);
v5 = v1;
v6 = AllObjects;
++v1;
if ( v4 )
break;
while ( 1 )
{
v7 = cocos2d::CCArray::objectAtIndex(v6, v5);
if ( v2 >= *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7) )
break;
v2 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);
v4 = v1 >= (unsigned int)cocos2d::CCArray::count(AllObjects);
v5 = v1;
v6 = AllObjects;
++v1;
if ( v4 )
return v2;
}
}
return v2;
}