//
// GJEffectManager::getSaveString from 0x5cd5e8 to 0x5cd6f8 (272 bytes)
//
// 1 xrefs:
// > LevelSettingsObject::getSaveString @ 0x470ca8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:00 +0000
//
GJEffectManager *__fastcall GJEffectManager::getSaveString(GJEffectManager *this, int a2)
{
int v3; // r2
const char *v4; // r0
const char *v5; // r5
size_t v6; // r0
int v7; // r0
int v8; // r5
int v9; // r0
int v10; // r3
unsigned int v12[3]; // [sp+Ch] [bp-208h] BYREF
char v13; // [sp+18h] [bp-1FCh] BYREF
v12[0] = 0;
v12[1] = 500;
v12[2] = (unsigned int)&v13;
v3 = *(_DWORD *)(a2 + 268);
if ( v3 )
{
v7 = *(_DWORD *)(v3 + 52);
if ( v7 )
v8 = *(_DWORD *)(v7 + 272);
else
v8 = 0;
while ( v7 )
{
v9 = *(_DWORD *)(v7 + 260);
if ( *(int *)(v9 + 88) >= 1000
|| *(unsigned __int8 *)(v9 + 68) != 255
|| *(unsigned __int8 *)(v9 + 69) != 255
|| *(unsigned __int8 *)(v9 + 70) != 255
|| *(_BYTE *)(v9 + 80)
|| *(float *)(v9 + 92) != 1.0
|| *(_DWORD *)(v9 + 116)
|| *(int *)(v9 + 84) > 0 )
{
ColorAction::writeSaveString(v9, v12);
fmt::BasicWriter::operator<<(v12, "|", 0);
}
if ( v8 )
v10 = *(_DWORD *)(v8 + 272);
else
v10 = 0;
v7 = v8;
v8 = v10;
}
}
v4 = (const char *)fmt::BasicWriter::c_str((int *)v12);
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v5 = v4;
*((_DWORD *)this + 2) = 0;
v6 = strlen(v4);
std::string::__init((int *)this, v5, v6);
fmt::internal::Array::free((int)v12);
return this;
}