//
// GJBaseGameLayer::spawnParticleTrigger_1 from 0x10015ca00 to 0x10015cbdc (476 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x1001b9ea4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJBaseGameLayer::spawnParticleTrigger_1(GJBaseGameLayer *a1, SpawnParticleGameObject *a2)
{
float v2; // xmm2_4
int v4; // eax
int v5; // r15d
double v6; // xmm0_8
int m_centerGroupID; // esi
GameObject *Object; // rax
GameObject *v9; // r12
__int64 v10; // rsi
double v11; // xmm0_8
float v12; // xmm0_4
int v13; // eax
int v14; // eax
int m_targetGroupID; // r14d
_BYTE v16[8]; // [rsp+4h] [rbp-3Ch] BYREF
float v17; // [rsp+Ch] [rbp-34h] BYREF
float v18; // [rsp+10h] [rbp-30h]
float m_scale; // [rsp+14h] [rbp-2Ch]
float m_rotation; // [rsp+18h] [rbp-28h]
float m_scaleVariance; // [rsp+1Ch] [rbp-24h]
m_rotation = a2->m_rotation;
v4 = rand();
m_rotation = (float)((float)((float)((float)((float)v4 * 4.6566129e-10) + (float)((float)v4 * 4.6566129e-10)) + -1.0)
* a2->m_rotationVariance)
+ m_rotation;
m_scale = a2->m_scale;
v5 = rand();
m_scaleVariance = a2->m_scaleVariance;
((void (__fastcall *)(SpawnParticleGameObject *))a2->getPosition)(a2);
v6 = sub_10028CC60(&v17);
m_centerGroupID = a2->m_centerGroupID;
if ( m_centerGroupID > 0 )
{
Object = GJBaseGameLayer::tryGetObject(a1, m_centerGroupID);
if ( Object )
{
v9 = Object;
v10 = ((__int64 (__fastcall *)(GameObject *, double))Object->getPosition)(Object, v6);
v11 = sub_10028CC90();
if ( a2->m_matchRotation )
{
v12 = ((float (__fastcall *)(GameObject *, __int64, double))v9->getRotation)(v9, v10, v11);
m_rotation = m_rotation + v12;
}
}
}
m_scale = (float)((float)((float)((float)((float)v5 * 4.6566129e-10) + (float)((float)v5 * 4.6566129e-10)) + -1.0)
* m_scaleVariance)
+ m_scale;
m_scaleVariance = a2->m_offset.x;
v13 = rand();
v17 = (float)((float)((float)((float)((float)((float)v13 * 4.6566129e-10) + (float)((float)v13 * 4.6566129e-10)) + -1.0)
* a2->m_offsetVariance.x)
+ m_scaleVariance)
+ v17;
m_scaleVariance = a2->m_offset.y;
v14 = rand();
v18 = (float)((float)((float)((float)((float)((float)v14 * 4.6566129e-10) + (float)((float)v14 * 4.6566129e-10)) + -1.0)
* a2->m_offsetVariance.y)
+ m_scaleVariance)
+ v18;
m_targetGroupID = a2->m_targetGroupID;
sub_10028CC60(v16);
GJBaseGameLayer::spawnParticleTrigger(a1, m_targetGroupID, (cocos2d::CCPoint)LODWORD(m_rotation), m_scale, v2);
}