//
// LevelEditorLayer::getLastObjectX from 0x1000c3fd0 to 0x1000c4063 (147 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::init @ 0x10027cee3
//
// 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 12:20:35 +0000
//
float __fastcall LevelEditorLayer::getLastObjectX(__int64 a1)
{
__int64 v1; // rbx
unsigned int v2; // r14d
__int64 v3; // r15
float v5; // [rsp+0h] [rbp-1Ch]
v1 = *(_QWORD *)(a1 + 3280);
if ( !(unsigned int)sub_1007FEF90(v1) )
return 0.0;
v2 = 0;
v5 = 0.0;
do
{
v3 = sub_1007FEFE0(v1, v2);
if ( *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3) > v5 )
v5 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3);
++v2;
}
while ( v2 < (unsigned int)sub_1007FEF90(v1) );
return v5;
}