//
// LevelEditorLayer::getLastObjectX from 0x1403fd290 to 0x1403fd333 (163 bytes)
//
// 5 xrefs:
// > EditorPauseLayer::init @ 0x1401811ae
// > LevelEditorLayer::updateLevelSaveInfo @ 0x1403ff67d
// > ??> @ 0x1408c6608
// > ??> @ 0x1408c6618
// > ??> @ 0x1409257f0
//
// This function is hookable on this platform (idp: pc, 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 11:31:53 +0000
//
double __fastcall LevelEditorLayer::getLastObjectX(__int64 a1)
{
cocos2d::CCArray *v1; // rsi
unsigned int v2; // ebx
double v3; // xmm6_8
struct cocos2d::CCObject *v4; // rdi
v1 = *(cocos2d::CCArray **)(a1 + 3536);
v2 = 0;
v3 = 0.0;
if ( !cocos2d::CCArray::count(v1) )
return 0.0;
do
{
v4 = cocos2d::CCArray::objectAtIndex(v1, v2);
if ( *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v4 + 200LL))(v4) > *(float *)&v3 )
*(_QWORD *)&v3 = *(unsigned int *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v4 + 200LL))(v4);
++v2;
}
while ( v2 < cocos2d::CCArray::count(v1) );
return v3;
}