//
// sub_1003F955C from 0x1003f955c to 0x1003f95fc (160 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::createObjectsFromSetup @ 0x1003f7ca0
// > LevelEditorLayer::createObjectsFromString @ 0x1003f9864
//
// 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:35 +0000
//
_DWORD *__fastcall sub_1003F955C(_DWORD *a1, __int64 *a2, __int64 *a3, __n128 a4)
{
_DWORD *v5; // x0
_DWORD *v6; // x19
int v7; // w8
v5 = sub_1002FB254(a2, a3, (__int64)a1, 0, a4);
v6 = v5;
if ( v5 )
{
v7 = v5[257];
if ( v7 == 142 || v7 == 1329 && a1[3539] - a1[3540] > 2 )
{
return nullptr;
}
else
{
(*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);
(*(void (__fastcall **)(_DWORD *, _DWORD *))(*(_QWORD *)a1 + 1344LL))(a1, v6);
LevelEditorLayer::addSpecial(a1, v6);
}
}
return v6;
}