//
// LevelEditorLayer::getActiveTraceInObject from 0x78f268 to 0x78f2b4 (76 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateDebugDraw @ 0x7bec84
// > ??> @ 0xcfcd0
//
// 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:28 +0000
//
__int64 __fastcall LevelEditorLayer::getActiveTraceInObject(LevelEditorLayer *this)
{
__int64 v1; // x1
__int64 v2; // x1
if ( !LevelEditorLayer::s_liveTraceIn )
return *((_QWORD *)this + 1853);
v1 = *((_QWORD *)this + 1781);
if ( !v1 )
return *((_QWORD *)this + 1853);
v2 = *(_QWORD *)(v1 + 1496);
if ( !v2 )
return *((_QWORD *)this + 1853);
if ( *(_DWORD *)(v2 + 1248) == 1 )
return v2;
if ( *(__int16 *)(v2 + 1168) <= 0 )
return 0;
return v2;
}