//
// sub_10040222C from 0x10040222c to 0x100402260 (52 bytes)
//
// 1 xrefs:
// > EditorUI::onPlayback @ 0x1004712f0
//
// 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 11:04:39 +0000
//
__int64 __fastcall sub_10040222C(__int64 a1)
{
__int64 v1; // x8
unsigned int *v2; // x8
v1 = *(_QWORD *)(a1 + 14816);
if ( !v1 )
return 0;
if ( *(_DWORD *)(v1 + 1028) == 31 )
v2 = (unsigned int *)(*(_QWORD *)(v1 + 1840) + 376LL);
else
v2 = (unsigned int *)(v1 + 1776);
return *v2;
}