//
// LevelEditorLayer::claimCustomParticle from 0x1000c8320 to 0x1000c83cf (175 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ac3ef0
//
// This function is hookable on this platform (idp: pc, 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 12:20:36 +0000
//
__int64 __fastcall LevelEditorLayer::claimCustomParticle(
__int64 a1,
__int64 a2,
__int64 a3,
unsigned int a4,
unsigned int a5,
__int64 a6,
unsigned __int8 a7)
{
__int64 v9; // rsi
__int64 v10; // rax
if ( *(_BYTE *)(a1 + 14012) != 1 )
return 0;
v9 = GameToolbox::particleFromStruct(a3, 0, 1);
sub_1007FEBF0(*(_QWORD *)(a1 + 12352), v9);
cocos2d::CCParticleSystem::resetSystem(v9);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 344LL))(v9, 1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 1584LL))(v9, a7);
v10 = GJBaseGameLayer::parentForZLayer(a1, a4, 0, 4, 0);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v10 + 464LL))(v10, v9, a5);
return v9;
}