//
// ParticleGameObject::claimParticle from 0x140641da0 to 0x140641f85 (485 bytes)
//
// 2 xrefs:
// > ??> @ 0x14081f1a0
// > ??> @ 0x140931064
//
// 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:35:35 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall ParticleGameObject::claimParticle(__int64 *a1)
{
__int64 v2; // rax
_QWORD *v3; // r10
__int64 v4; // rax
_QWORD *v5; // rcx
_QWORD *v6; // r11
__int64 v7; // rbx
__int64 v8; // rax
__int64 v9; // rcx
float v10; // xmm0_4
void *v11; // [rsp+50h] [rbp+8h]
void *v12; // [rsp+50h] [rbp+8h]
if ( !a1[97] && !*((_BYTE *)a1 + 1817) )
{
if ( *((_BYTE *)a1 + 1496) )
{
*((_BYTE *)a1 + 1496) = 0;
GameToolbox::particleStringToStruct(a1 + 183, (__int64)(a1 + 188));
}
v2 = qword_14090BFD0;
if ( *((_BYTE *)a1 + 653) )
{
if ( !qword_14090BFD0 )
{
v11 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
v3 = *(_QWORD **)(v2 + 568);
v4 = *v3;
v5 = v3;
}
else
{
if ( !qword_14090BFD0 )
{
v12 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v12);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
v6 = *(_QWORD **)(v2 + 560);
v4 = *v6;
v5 = v6;
}
a1[97] = (*(__int64 (__fastcall **)(_QWORD *, __int64 *, __int64 *))(v4 + 1352))(v5, a1 + 183, a1 + 188);
v7 = *a1;
v8 = (*(__int64 (__fastcall **)(__int64 *))(*a1 + 200))(a1);
(*(void (__fastcall **)(__int64 *, __int64))(v7 + 184))(a1, v8);
v9 = a1[97];
if ( v9 )
{
v10 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v9 + 912LL))(v9);
*((_BYTE *)a1 + 1402) = v10 >= 0.0;
if ( v10 >= 0.0 )
{
cocos2d::CCParticleSystem::stopSystem((cocos2d::CCParticleSystem *)a1[97]);
*((_BYTE *)a1 + 1816) = 1;
*((_DWORD *)a1 + 453) = -1082130432;
}
ParticleGameObject::applyParticleSettings(a1, a1[97]);
}
}
}