//
// ParticleGameObject::setParticleString from 0x7549ac to 0x754a3c (144 bytes)
//
// 8 xrefs:
// > LevelEditorLayer::copyParticleState @ 0x661d78
// > LevelEditorLayer::pasteParticleState @ 0x661fe8
// > LevelEditorLayer::pasteParticleState @ 0x6620a4
// > LevelEditorLayer::pasteParticleState @ 0x662104
// > CreateParticlePopup::onCopySettings @ 0x9c14f0
// > CreateParticlePopup::onClose @ 0x9c50b4
// > CreateParticlePopup::onClose @ 0x9c51a8
// > ??> @ 0x55140
//
// 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
//
__int64 __fastcall ParticleGameObject::setParticleString(__int64 a1, const void **a2)
{
_QWORD *v4; // x0
unsigned __int64 v5; // x19
_QWORD *v6; // x1
unsigned __int64 v7; // x20
size_t v8; // x2
unsigned __int64 v9; // x19
__int64 result; // x0
v4 = *(_QWORD **)(a1 + 1432);
v5 = *(v4 - 3);
v6 = *a2;
v7 = *(v6 - 3);
if ( v7 > v5 )
v8 = *(v4 - 3);
else
v8 = *(v6 - 3);
if ( memcmp(v4, v6, v8) || (v9 = v5 - v7, result = v9 + 0x80000000, v9 + 0x80000000 > 0xFFFFFFFF) || (_DWORD)v9 )
{
sub_D18EA8(a1 + 1432, a2);
*(_BYTE *)(a1 + 1440) = 1;
return 1;
}
return result;
}