//
// GameToolbox::particleFromString from 0x10004d9d8 to 0x10004da90 (184 bytes)
//
// 19 xrefs:
// > SecretLayer5::onSubmit @ 0x10007d7fc
// > sub_100136480 @ 0x1001365d0
// > GauntletSelectLayer::playUnlockAnimation @ 0x100255c9c
// > GauntletSelectLayer::unlockAnimationStep2 @ 0x1002561fc
// > GauntletSelectLayer::unlockAnimationStep3 @ 0x1002564b4
// > GauntletSelectLayer::unlockAnimationStep3 @ 0x100256658
// > sub_100369218 @ 0x100369328
// > sub_100369218 @ 0x100369668
// > sub_100369218 @ 0x100369688
// > GJDifficultySprite::updateFeatureState @ 0x1003809f4
// > LevelAreaLayer::init @ 0x1003e2c20
// > sub_1004278B8 @ 0x1004278e0
// > GJPathPage::playUnlockAnimation @ 0x1004612a8
// > GJPathPage::unlockAnimationStep2 @ 0x1004619ec
// > GJPathPage::unlockAnimationStep3 @ 0x100461d6c
// > GJPathPage::unlockAnimationStep3 @ 0x100461e54
// > LevelPage::updateDynamicPage @ 0x100483274
// > LevelPage::updateDynamicPage @ 0x10048331c
// > LevelPage::updateDynamicPage @ 0x1004833c4
//
// This function is hookable on this platform (idp: arm, 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 10:57:42 +0000
//
__int64 __fastcall GameToolbox::particleFromString(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // x8
_OWORD v7[14]; // [xsp+0h] [xbp-140h] BYREF
__int64 v8; // [xsp+E0h] [xbp-60h]
_BYTE v9[13]; // [xsp+E8h] [xbp-58h] BYREF
__int128 v10; // [xsp+F8h] [xbp-48h]
__int128 __p; // [xsp+108h] [xbp-38h]
__int64 v12; // [xsp+118h] [xbp-28h]
v4 = *(unsigned __int8 *)(a1 + 23);
if ( (v4 & 0x80u) != 0LL )
v4 = *(_QWORD *)(a1 + 8);
if ( v4 )
{
memset(v7, 0, 221);
v8 = 0;
memset(v9, 0, sizeof(v9));
__p = 0u;
v10 = 0u;
v12 = 0;
GameToolbox::particleStringToStruct(a1, (__int64)v7);
a2 = GameToolbox::particleFromStruct(v7, a2, a3);
if ( SHIBYTE(v12) < 0 )
operator delete((void *)__p);
}
return a2;
}