//
// LevelEditorLayer::getSelectedOrderChannel from 0x1000c22e0 to 0x1000c2319 (57 bytes)
//
// 1 xrefs:
// > EditorUI::onPlayback @ 0x10000865c
//
// 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:34 +0000
//
__int64 __fastcall LevelEditorLayer::getSelectedOrderChannel(__int64 a1)
{
__int64 v1; // rax
v1 = *(_QWORD *)(a1 + 14816);
if ( !v1 )
return 0;
if ( *(_DWORD *)(v1 + 1028) == 31 )
return *(unsigned int *)(*(_QWORD *)(v1 + 1840) + 376LL);
return *(unsigned int *)(v1 + 1776);
}