//
// LevelEditorLayer::getActiveTraceInObject from 0x4637e0 to 0x46381a (58 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::updateDebugDraw @ 0x47fdc4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:54 +0000
//
int __fastcall LevelEditorLayer::getActiveTraceInObject(LevelEditorLayer *this)
{
int v1; // r3
int v2; // r3
if ( !LevelEditorLayer::s_liveTraceIn )
return *((_DWORD *)this + 3054);
v1 = *((_DWORD *)this + 2964);
if ( !v1 )
return *((_DWORD *)this + 3054);
v2 = *(_DWORD *)(v1 + 996);
if ( !v2 )
return *((_DWORD *)this + 3054);
if ( *(_DWORD *)(v2 + 1084) == 1 )
return v2;
if ( *(__int16 *)(v2 + 1020) <= 0 )
return 0;
return v2;
}