//
// LevelEditorLayer::claimCustomParticle from 0x140401230 to 0x1404012f4 (196 bytes)
//
// 3 xrefs:
// > ??> @ 0x14078b318
// > ??> @ 0x140925ae4
// > ??> @ 0x140925af0
//
// 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 11:31:54 +0000
//
struct cocos2d::CCObject *__fastcall LevelEditorLayer::claimCustomParticle(
__int64 a1,
__int64 a2,
unsigned int *a3,
int a4,
unsigned int a5,
int a6,
unsigned __int8 a7)
{
struct cocos2d::CCObject *v10; // rbx
__int64 v11; // rdx
struct cocos2d::CCObject *v12; // rax
if ( !*(_BYTE *)(a1 + 14668) )
return nullptr;
v10 = GameToolbox::particleFromStruct(a3, nullptr, 1);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 12808), v10);
cocos2d::CCParticleSystem::resetSystem(v10);
LOBYTE(v11) = 1;
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v10 + 336LL))(v10, v11);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v10 + 1544LL))(v10, a7);
v12 = GJBaseGameLayer::parentForZLayer(a1, a4, 0, 4, 0);
(*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v12 + 456LL))(
v12,
v10,
a5);
return v10;
}