//
// GJEffectManager::getSaveString from 0x100016558 to 0x1000166b8 (352 bytes)
//
// 1 xrefs:
// > LevelSettingsObject::getSaveString @ 0x10035c688
//
// 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 __usercall GJEffectManager::getSaveString(__int64 a1@, _QWORD *a2@)
{
__int64 v3; // x8
__int64 v4; // x22
__int64 v5; // x0
bool v6; // zf
unsigned __int128 v7; // kr00_16
__int128 v9; // [xsp+0h] [xbp-260h] BYREF
void *__p; // [xsp+10h] [xbp-250h]
_BYTE v11[512]; // [xsp+18h] [xbp-248h] BYREF
v9 = xmmword_1006350E0;
__p = v11;
v3 = *(_QWORD *)(a1 + 328);
if ( v3 && (v4 = *(_QWORD *)(v3 + 56)) != 0 )
{
do
{
v5 = *(_QWORD *)(v4 + 264);
v4 = *(_QWORD *)(v4 + 288);
if ( *(int *)(v5 + 92) <= 999 )
{
v6 = (*(unsigned __int16 *)(v5 + 72) | (*(unsigned __int8 *)(v5 + 74) << 16)) >= 0xFF0000u
&& *(unsigned __int16 *)(v5 + 72) == 0xFFFF;
if ( v6
&& (*(_BYTE *)(v5 + 84) & 1) == 0
&& *(float *)(v5 + 96) == 1.0
&& !*(_DWORD *)(v5 + 120)
&& *(int *)(v5 + 88) < 1 )
{
continue;
}
}
sub_10000D7A4(v5, (__int64 *)&v9);
sub_10000CB18((__int64 *)&v9, "|", 0);
}
while ( v4 );
v7 = v9;
}
else
{
v7 = __PAIR128__(500, 0);
}
if ( *((_QWORD *)&v7 + 1) < (unsigned __int64)(v7 + 1) )
sub_100009ED4((__int64)&v9, v7 + 1);
*((_BYTE *)__p + v7) = 0;
sub_100009900(a2, (char *)__p);
if ( __p != v11 && __p != nullptr )
operator delete[](__p);
}