//
// GameObject::spawnDefaultPickupParticle from 0x1402a75f0 to 0x1402a7824 (564 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::destroyObject @ 0x14031d51a
// > ??> @ 0x1408afed4
// > ??> @ 0x1408afee4
// > ??> @ 0x14091daec
//
// 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:29:18 +0000
//
void __fastcall GameObject::spawnDefaultPickupParticle(__int64 a1, __int64 a2)
{
__int64 v2; // r14
unsigned __int8 v5; // al
int v6; // edi
float v7; // xmm9_4
const struct cocos2d::CCPoint *v8; // rax
__int64 v9; // rax
int v10; // r8d
int v11; // r9d
const char *v12; // rdx
__int64 v13; // rdx
__int64 v14; // rcx
cocos2d::CCParticleSystem *v15; // rbx
__int64 v16; // r8
__int64 v17; // rax
__m128i v18; // xmm6
float v19; // xmm8_4
__m128i v20; // xmm7
__int64 v21; // rax
float v22; // xmm8_4
__int64 v23; // rax
cocos2d::CCObject *v24; // rdi
__int64 v25; // rax
__int64 v26; // rbx
__int64 v27; // rax
_BYTE v28[8]; // [rsp+38h] [rbp-80h] BYREF
float v29; // [rsp+40h] [rbp-78h] BYREF
__int32 v30; // [rsp+44h] [rbp-74h]
__int32 v31; // [rsp+48h] [rbp-70h]
float v32; // [rsp+4Ch] [rbp-6Ch]
v2 = a1 + 320;
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 + 320) + 32LL))(a1 + 320);
v6 = *(_DWORD *)(a1 + 1036);
v7 = (float)v5;
v8 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, v8);
v12 = "glassDestroy01.plist";
if ( v6 == 1614 )
v12 = "coinPickupEffect.plist";
v15 = (cocos2d::CCParticleSystem *)GJBaseGameLayer::spawnParticle(a2, (_DWORD)v12, v10, v11, v9);
if ( v15 )
{
v17 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 8LL))(v2);
v18 = _mm_cvtsi32_si128(*(unsigned __int8 *)(v17 + 2));
v19 = (float)(unsigned __int8)*(_WORD *)v17;
v20 = _mm_cvtsi32_si128((unsigned __int8)HIBYTE(*(_WORD *)v17));
v21 = *(_QWORD *)v15;
*(float *)v20.m128i_i32 = _mm_cvtepi32_ps(v20).m128_f32[0] / 255.0;
v22 = v19 / 255.0;
*(float *)v18.m128i_i32 = _mm_cvtepi32_ps(v18).m128_f32[0] / 255.0;
v30 = v20.m128i_i32[0];
v29 = v22;
v31 = v18.m128i_i32[0];
v32 = v7 / 255.0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(v21 + 1352))(v15, &v29);
v23 = *(_QWORD *)v15;
v29 = v22;
v30 = v20.m128i_i32[0];
v31 = v18.m128i_i32[0];
v32 = 0.0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(v23 + 1384))(v15, &v29);
if ( v6 == 1614 )
{
cocos2d::CCParticleSystem::loadScaledDefaults(v15, 0.60000002);
return;
}
}
else if ( v6 == 1614 )
{
return;
}
v24 = CCCircleWave::create(v14, v13, v16, 0, 0);
v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 8LL))(v2);
v26 = *(_QWORD *)v24;
*((_WORD *)v24 + 170) = *(_WORD *)v25;
*((_BYTE *)v24 + 342) = *(_BYTE *)(v25 + 2);
v27 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 200LL))(a1);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v26 + 184))(v24, v27);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, _QWORD))(**(_QWORD **)(a2 + 4296) + 456LL))(
*(_QWORD *)(a2 + 4296),
v24,
0);
}