//
// sub_100404390 from 0x100404390 to 0x100404414 (132 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::onPlaytest @ 0x1004048a8
//
// 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:40 +0000
//
_QWORD *__fastcall sub_100404390(__int64 a1)
{
_QWORD *v2; // x19
__int64 v3; // x8
unsigned int *v4; // x9
__int64 v5; // x8
__int64 *v6; // x20
unsigned __int64 v7; // x21
__int64 v8; // x1
v2 = sub_1002E736C();
v3 = *(_QWORD *)(a1 + 3280);
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((__int64 **)v4 + 2);
v7 = (unsigned __int64)&v6[v5 - 1];
do
{
v8 = *v6;
if ( !*v6 )
break;
if ( *(_DWORD *)(v8 + 1028) == 31 && (*(_BYTE *)(*(_QWORD *)(v8 + 1840) + 464LL) & 1) == 0 )
sub_1002E74E0((__int64)v2);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
return sub_100281374((__int64)v2);
}