//
// GameObject::spawnDefaultPickupParticle from 0x1002482f0 to 0x1002484b4 (452 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::destroyObject @ 0x10010624a
//
// 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:27:20 +0000
//
__int64 __fastcall GameObject::spawnDefaultPickupParticle(
_DWORD *a1,
__int64 a2,
__m128 a3,
double a4,
double a5,
__m128 a6)
{
int v6; // ebx
const char *v7; // r15
__int64 v8; // rax
__int64 result; // rax
__int64 v10; // r15
unsigned __int16 *v11; // rax
__m128 v12; // xmm1
char *v13; // r15
__int64 v14; // rax
__int16 v15; // cx
__int64 v16; // rax
__m128 v17; // [rsp+10h] [rbp-70h]
unsigned __int8 v18; // [rsp+30h] [rbp-50h]
_OWORD v19[3]; // [rsp+48h] [rbp-38h] BYREF
v18 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 896LL))(a1);
v6 = a1[257];
v7 = "glassDestroy01.plist";
if ( v6 == 1614 )
v7 = "coinPickupEffect.plist";
v8 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 192LL))(a1);
sub_1002782D0(v19, v8);
result = GJBaseGameLayer::spawnParticle(a2, (__int64)v7, 0, 2u, (__int64)v19);
if ( result )
{
v10 = result;
a3.f32[0] = (float)v18;
v11 = (unsigned __int16 *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 944LL))(a1);
v17 = _mm_div_ps(_mm_cvtepi32_ps(_mm_cvtepu8_epi32(_mm_cvtsi32_si128(*v11))), (__m128)xmmword_100A041D0);
a6.f32[0] = (float)*((unsigned __int8 *)v11 + 2) / 255.0;
v12 = a3;
v12.f32[0] = a3.f32[0] / 255.0;
v19[0] = _mm_movelh_ps(v17, _mm_insert_ps(a6, v12, 16));
(*(void (__fastcall **)(__int64, _OWORD *))(*(_QWORD *)v10 + 1360LL))(v10, v19);
v19[0] = _mm_insert_ps(v17, (__m128)a6.u32[0], 40);
(*(void (__fastcall **)(__int64, _OWORD *))(*(_QWORD *)v10 + 1392LL))(v10, v19);
if ( v6 == 1614 )
return cocos2d::CCParticleSystem::loadScaledDefaults(v10, COERCE_DOUBLE(1058642330));
}
else if ( v6 == 1614 )
{
return result;
}
v13 = CCCircleWave::create(0, 0, 12.0, 2.0, 0.30000001);
v14 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 944LL))(a1);
v15 = *(_WORD *)v14;
v13[342] = *(_BYTE *)(v14 + 2);
*((_WORD *)v13 + 170) = v15;
v16 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a1 + 192LL))(a1);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v13 + 184LL))(v13, v16);
return (*(__int64 (__fastcall **)(_QWORD, char *, _QWORD))(**(_QWORD **)(a2 + 3920) + 464LL))(
*(_QWORD *)(a2 + 3920),
v13,
0);
}