//
// sub_1002FED50 from 0x1002fed50 to 0x1002fee1c (204 bytes)
//
// 2 xrefs:
// > PlayLayer::addObject @ 0x1001415b4
// > LevelEditorLayer::onPlaytest @ 0x100404884
//
// 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:03:04 +0000
//
void __fastcall sub_1002FED50(__int64 a1)
{
int v2; // w8
unsigned __int64 v4; // t2
*(_BYTE *)(a1 + 744) = 0;
v2 = *(_DWORD *)(a1 + 920);
if ( v2 <= 20 )
{
if ( v2 )
{
if ( v2 == 7 )
return;
goto LABEL_11;
}
LABEL_10:
if ( *(_BYTE *)(a1 + 1214) != 1 )
return;
goto LABEL_11;
}
if ( v2 == 25 || v2 == 21 )
goto LABEL_10;
LABEL_11:
HIDWORD(v4) = -1527099483 * (int)(*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 368LL))(a1) + 47721858;
LODWORD(v4) = HIDWORD(v4);
if ( (unsigned int)(v4 >> 1) >= 0x2D82D83 && *(float *)(a1 + 900) <= 0.0 )
{
*(_BYTE *)(a1 + 744) = 1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1568LL))(a1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1328LL))(a1);
}
}