//
// UISettingsGameObject::getSaveString from 0x8af7d0 to 0x8afbbc (1004 bytes)
//
// 2 xrefs:
// > ??> @ 0x4ec10
// > ??> @ 0x1452b50
//
// 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:22 +0000
//
__int64 *__usercall UISettingsGameObject::getSaveString@(
UISettingsGameObject *this@,
GJBaseGameLayer *a2@,
__int64 *a3@)
{
const char *v5; // x1
size_t v6; // x2
size_t v7; // x20
const char *v8; // x1
size_t v9; // x0
char *v11; // [xsp+48h] [xbp+48h]
__int64 v12[2]; // [xsp+B0h] [xbp+B0h] BYREF
char *v13; // [xsp+C0h] [xbp+C0h]
size_t v14; // [xsp+C8h] [xbp+C8h] BYREF
unsigned __int64 v15; // [xsp+D0h] [xbp+D0h]
char *v16; // [xsp+D8h] [xbp+D8h]
_BYTE v17[504]; // [xsp+E0h] [xbp+E0h] BYREF
v14 = 0;
v15 = 500;
v16 = v17;
EffectGameObject::getSaveString(this, a2, v12);
if ( (v12[0] & 1) != 0 )
{
v5 = v13;
v6 = v12[1];
}
else
{
v5 = (char *)v12 + 1;
v6 = LOBYTE(v12[0]) >> 1;
}
fmt::BasicWriter::operator<<(&v14, v5, v6);
if ( (v12[0] & 1) != 0 )
{
operator delete(v13);
if ( !*((_DWORD *)this + 366) )
{
LABEL_5:
if ( !*((_DWORD *)this + 367) )
goto LABEL_6;
goto LABEL_19;
}
}
else if ( !*((_DWORD *)this + 366) )
{
goto LABEL_5;
}
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v14, 0x33u);
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v14,
*((_DWORD *)this + 366));
if ( !*((_DWORD *)this + 367) )
{
LABEL_6:
if ( !*((_DWORD *)this + 460) )
goto LABEL_7;
goto LABEL_20;
}
LABEL_19:
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v14, 0x47u);
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v14,
*((_DWORD *)this + 367));
if ( !*((_DWORD *)this + 460) )
{
LABEL_7:
if ( !*((_DWORD *)this + 461) )
goto LABEL_8;
goto LABEL_21;
}
LABEL_20:
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v14, 0x181u);
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v14,
*((_DWORD *)this + 460));
if ( !*((_DWORD *)this + 461) )
{
LABEL_8:
if ( !*((_BYTE *)this + 1848) )
goto LABEL_9;
LABEL_22:
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v14, 0x183u);
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v14,
*((unsigned __int8 *)this + 1848));
if ( !*((_BYTE *)this + 1849) )
goto LABEL_10;
goto LABEL_23;
}
LABEL_21:
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v14, 0x182u);
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v14,
*((_DWORD *)this + 461));
if ( *((_BYTE *)this + 1848) )
goto LABEL_22;
LABEL_9:
if ( !*((_BYTE *)this + 1849) )
goto LABEL_10;
LABEL_23:
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v14, 0x184u);
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v14,
*((unsigned __int8 *)this + 1849));
LABEL_10:
v7 = v14;
if ( v15 < v14 + 1 )
fmt::internal::Array::grow(&v14, v14 + 1);
v16[v7] = 0;
*a3 = 0;
v8 = v16;
a3[1] = 0;
a3[2] = 0;
v11 = (char *)v8;
v9 = strlen(v8);
std::string::__init(a3, v11, v9);
if ( v16 != v17 && v16 )
operator delete[](v16);
return a3;
}