//
// ParticleGameObject::setParticleString from 0x899d64 to 0x899dd4 (112 bytes)
//
// 7 xrefs:
// > LevelEditorLayer::copyParticleState @ 0x793910
// > LevelEditorLayer::pasteParticleState @ 0x793ac0
// > LevelEditorLayer::pasteParticleState @ 0x793b98
// > CreateParticlePopup::onClose @ 0xaff3b8
// > CreateParticlePopup::onClose @ 0xaff498
// > CreateParticlePopup::onCopySettings @ 0xaffdd4
// > ??> @ 0x58900
//
// 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 12:56:11 +0000
//
bool __fastcall ParticleGameObject::setParticleString(__int64 a1, __int64 a2)
{
__int64 *v2; // x19
_BOOL8 result; // x0
const void *v6; // x1
size_t v7; // x2
v2 = (__int64 *)(a1 + 1448);
result = sub_86F364(a1 + 1448, a2);
if ( !result )
{
if ( v2 != (__int64 *)a2 )
{
if ( (*(_BYTE *)a2 & 1) != 0 )
{
v6 = *(const void **)(a2 + 16);
v7 = *(_QWORD *)(a2 + 8);
}
else
{
v6 = (const void *)(a2 + 1);
v7 = *(_BYTE *)a2 >> 1;
}
std::string::assign(v2, v6, v7);
}
result = 1;
*(_BYTE *)(a1 + 1472) = 1;
}
return result;
}