//
// GameToolbox::particleFromStruct from 0x140072700 to 0x140072c6f (1391 bytes)
//
// 22 xrefs:
// > LevelCell::playRecallUnlock @ 0x140148f8a
// > GauntletSelectLayer::playUnlockAnimation @ 0x1403002fe
// > GauntletSelectLayer::unlockAnimationStep2 @ 0x140300736
// > GauntletSelectLayer::unlockAnimationStep3 @ 0x140300b08
// > GauntletSelectLayer::unlockAnimationStep3 @ 0x140300e45
// > GJBaseGameLayer::createCustomParticle @ 0x14034acbb
// > GJPathPage::playUnlockAnimation @ 0x140395f2d
// > GJPathPage::unlockAnimationStep2 @ 0x140396248
// > GJPathPage::unlockAnimationStep3 @ 0x1403966d0
// > GJPathPage::unlockAnimationStep3 @ 0x14039691f
// > GJDifficultySprite::updateFeatureState @ 0x1403ab51d
// > LevelAreaLayer::init @ 0x1403de2df
// > LevelEditorLayer::claimCustomParticle @ 0x140401266
// > LevelPage::updateDynamicPage @ 0x140444d19
// > LevelPage::updateDynamicPage @ 0x140444e9e
// > LevelPage::updateDynamicPage @ 0x140445012
// > SecretLayer5::onSubmit @ 0x14058c821
// > CreateParticlePopup::init @ 0x1405c1632
// > CreateParticlePopup::init @ 0x1405c19f3
// > CreateParticlePopup::init @ 0x1405c1a4e
// > ParticleGameObject::updateParticle @ 0x1406425c8
// > ??> @ 0x140911828
//
// 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:25:50 +0000
//
struct cocos2d::CCParticleSystemQuad *__fastcall GameToolbox::particleFromStruct(
unsigned int *a1,
struct cocos2d::CCParticleSystemQuad *a2,
bool a3)
{
struct cocos2d::CCParticleSystemQuad *v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
__int64 v8; // rbx
__int64 v9; // rax
unsigned int v10; // xmm1_4
__int64 v11; // rax
unsigned int v12; // xmm0_4
unsigned int v13; // xmm1_4
unsigned int v14; // xmm1_4
__int64 v15; // rax
unsigned int v16; // xmm0_4
unsigned int v17; // xmm1_4
unsigned int v18; // xmm1_4
__int64 v19; // rax
unsigned int v20; // xmm0_4
unsigned int v21; // xmm1_4
unsigned int v22; // xmm1_4
__int64 v23; // rax
unsigned int v24; // xmm0_4
unsigned int v25; // xmm1_4
const char *v26; // rbx
cocos2d::CCSpriteFrameCache *v27; // rax
struct cocos2d::CCSpriteFrame *v28; // rax
unsigned int v30; // [rsp+20h] [rbp-38h] BYREF
unsigned int v31; // [rsp+24h] [rbp-34h]
unsigned int v32; // [rsp+28h] [rbp-30h]
unsigned int v33; // [rsp+2Ch] [rbp-2Ch]
v5 = a2;
if ( a2 )
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, _QWORD))(*(_QWORD *)a2 + 1496LL))(a2, *a1);
else
v5 = cocos2d::CCParticleSystemQuad::createWithTotalParticles(*a1, a3);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 920LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 968LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 984LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1480LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1000LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1016LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1056LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1072LL))(v5);
v6 = *(_QWORD *)v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, (float)(int)a1[9], (float)(int)a1[10]);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(v6 + 952))(v5, v7);
v8 = *(_QWORD *)v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, (float)(int)a1[11], (float)(int)a1[12]);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(v8 + 1040))(v5, v9);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1120LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1136LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1088LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1104LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1288LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1304LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1416LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1432LL))(v5);
v10 = a1[23];
v11 = *(_QWORD *)v5;
v30 = a1[21];
v12 = a1[25];
v31 = v10;
v13 = a1[27];
v32 = v12;
v33 = v13;
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, unsigned int *))(v11 + 1352))(v5, &v30);
v14 = a1[24];
v15 = *(_QWORD *)v5;
v30 = a1[22];
v16 = a1[26];
v31 = v14;
v17 = a1[28];
v32 = v16;
v33 = v17;
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, unsigned int *))(v15 + 1368))(v5, &v30);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1320LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1336LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1448LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1464LL))(v5);
v18 = a1[35];
v19 = *(_QWORD *)v5;
v30 = a1[33];
v20 = a1[37];
v31 = v18;
v21 = a1[39];
v32 = v20;
v33 = v21;
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, unsigned int *))(v19 + 1384))(v5, &v30);
v22 = a1[36];
v23 = *(_QWORD *)v5;
v30 = a1[34];
v24 = a1[38];
v31 = v22;
v25 = a1[40];
v32 = v24;
v33 = v25;
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, unsigned int *))(v23 + 1400))(v5, &v30);
*((_DWORD *)v5 + 126) = a1[41];
*((_DWORD *)v5 + 127) = a1[42];
*((_DWORD *)v5 + 128) = a1[43];
*((_DWORD *)v5 + 129) = a1[44];
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1168LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1184LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1200LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1216LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1232LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *))(*(_QWORD *)v5 + 1248LL))(v5);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, _QWORD))(*(_QWORD *)v5 + 1560LL))(v5, a1[51]);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, _QWORD))(*(_QWORD *)v5 + 1528LL))(v5, a1[52]);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, _QWORD))(*(_QWORD *)v5 + 1272LL))(
v5,
*((unsigned __int8 *)a1 + 212));
*((_BYTE *)v5 + 552) = *((_BYTE *)a1 + 213);
(*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, _QWORD))(*(_QWORD *)v5 + 1152LL))(
v5,
*((unsigned __int8 *)a1 + 214));
v26 = (const char *)(a1 + 66);
*((_BYTE *)v5 + 555) = *((_BYTE *)a1 + 215);
if ( *((_QWORD *)a1 + 36) > 0xFu )
v26 = *(const char **)v26;
v27 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v28 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v27, v26);
cocos2d::CCParticleSystemQuad::setDisplayFrame(v5, v28);
*((_WORD *)v5 + 418) = *((_WORD *)a1 + 108);
*((_BYTE *)v5 + 748) = *((_BYTE *)a1 + 220);
*((_DWORD *)v5 + 130) = a1[56];
*((_DWORD *)v5 + 131) = a1[57];
*((_DWORD *)v5 + 136) = a1[58];
*((_DWORD *)v5 + 137) = a1[59];
*((_BYTE *)v5 + 556) = *((_BYTE *)a1 + 240);
*((_BYTE *)v5 + 553) = *((_BYTE *)a1 + 241);
*((_BYTE *)v5 + 554) = *((_BYTE *)a1 + 242);
*((_BYTE *)v5 + 557) = *((_BYTE *)a1 + 243);
*((_BYTE *)v5 + 558) = *((_BYTE *)a1 + 244);
*((_DWORD *)v5 + 132) = a1[62];
*((_DWORD *)v5 + 133) = a1[63];
*((_DWORD *)v5 + 134) = a1[64];
*((_DWORD *)v5 + 135) = a1[65];
if ( a2 )
cocos2d::CCParticleSystem::resetSystem(v5);
cocos2d::CCParticleSystem::saveDefaults(v5);
return v5;
}