//
// LevelEditorLayer::claimCustomParticle from 0x100406228 to 0x1004062f8 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x10094c5a0
//
// 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:41 +0000
//
__int64 __fastcall LevelEditorLayer::claimCustomParticle(
__int64 a1,
__int64 a2,
unsigned int *a3,
__int64 a4,
__int64 a5,
__int64 a6,
__int64 a7)
{
__int64 v11; // x20
_OWORD *v12; // x0
if ( *(_BYTE *)(a1 + 14012) != 1 )
return 0;
v11 = GameToolbox::particleFromStruct(a3, 0, 1);
sub_1002E74E0(*(_QWORD *)(a1 + 12352));
cocos2d::CCParticleSystem::resetSystem(v11);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 344LL))(v11, 1);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 1584LL))(v11, a7);
v12 = GJBaseGameLayer::parentForZLayer(a1, a4, 0, 4, 0);
(*(void (__fastcall **)(_OWORD *, __int64, __int64))(*(_QWORD *)v12 + 464LL))(v12, v11, a5);
return v11;
}