//
// AdvancedFollowEditObject::getSaveString from 0x8a8358 to 0x8a87d4 (1148 bytes)
//
// 2 xrefs:
// > ??> @ 0xf6e98
// > ??> @ 0x14461a0
//
// 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:19 +0000
//
__int64 *__usercall AdvancedFollowEditObject::getSaveString@(
AdvancedFollowEditObject *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
double v11; // d0
double v12; // d0
double v13; // d0
double v14; // d0
char *v15; // [xsp+48h] [xbp+48h]
__int64 v16[2]; // [xsp+90h] [xbp+90h] BYREF
char *v17; // [xsp+A0h] [xbp+A0h]
_DWORD v18[5]; // [xsp+A8h] [xbp+A8h] BYREF
char v19; // [xsp+BCh] [xbp+BCh]
_DWORD v20[5]; // [xsp+C0h] [xbp+C0h] BYREF
char v21; // [xsp+D4h] [xbp+D4h]
_DWORD v22[5]; // [xsp+D8h] [xbp+D8h] BYREF
char v23; // [xsp+ECh] [xbp+ECh]
_DWORD v24[5]; // [xsp+F0h] [xbp+F0h] BYREF
char v25; // [xsp+104h] [xbp+104h]
size_t v26; // [xsp+108h] [xbp+108h] BYREF
unsigned __int64 v27; // [xsp+110h] [xbp+110h]
char *v28; // [xsp+118h] [xbp+118h]
_BYTE v29[504]; // [xsp+120h] [xbp+120h] BYREF
v26 = 0;
v27 = 500;
v28 = v29;
AdvancedFollowTriggerObject::getSaveString(this, a2, v16);
if ( (v16[0] & 1) != 0 )
{
v5 = v17;
v6 = v16[1];
}
else
{
v5 = (char *)v16 + 1;
v6 = LOBYTE(v16[0]) >> 1;
}
fmt::BasicWriter::operator<<(&v26, v5, v6);
if ( (v16[0] & 1) != 0 )
{
operator delete(v17);
if ( *((float *)this + 521) == 0.0 )
{
LABEL_5:
if ( *((float *)this + 522) == 0.0 )
goto LABEL_6;
goto LABEL_19;
}
}
else if ( *((float *)this + 521) == 0.0 )
{
goto LABEL_5;
}
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v26, 0x236u);
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
v11 = *((float *)this + 521);
v18[1] = 32;
v18[0] = 0;
v18[2] = 0;
v18[3] = 0;
v18[4] = -1;
v19 = 0;
fmt::BasicWriter::FormatDouble(&v26, v18, v11);
if ( *((float *)this + 522) == 0.0 )
{
LABEL_6:
if ( *((float *)this + 523) == 0.0 )
goto LABEL_7;
goto LABEL_20;
}
LABEL_19:
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v26, 0x237u);
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
v12 = *((float *)this + 522);
v20[1] = 32;
v20[0] = 0;
v20[2] = 0;
v20[3] = 0;
v20[4] = -1;
v21 = 0;
fmt::BasicWriter::FormatDouble(&v26, v20, v12);
if ( *((float *)this + 523) == 0.0 )
{
LABEL_7:
if ( *((float *)this + 524) == 0.0 )
goto LABEL_8;
goto LABEL_21;
}
LABEL_20:
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v26, 0x238u);
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
v13 = *((float *)this + 523);
v22[1] = 32;
v22[0] = 0;
v22[2] = 0;
v22[3] = 0;
v22[4] = -1;
v23 = 0;
fmt::BasicWriter::FormatDouble(&v26, v22, v13);
if ( *((float *)this + 524) == 0.0 )
{
LABEL_8:
if ( !*((_BYTE *)this + 2100) )
goto LABEL_9;
LABEL_22:
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v26, 0x23Au);
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v26,
*((unsigned __int8 *)this + 2100));
if ( !*((_BYTE *)this + 1676) )
goto LABEL_10;
goto LABEL_23;
}
LABEL_21:
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v26, 0x239u);
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
v14 = *((float *)this + 524);
v24[1] = 32;
v24[0] = 0;
v24[2] = 0;
v24[3] = 0;
v24[4] = -1;
v25 = 0;
fmt::BasicWriter::FormatDouble(&v26, v24, v14);
if ( *((_BYTE *)this + 2100) )
goto LABEL_22;
LABEL_9:
if ( !*((_BYTE *)this + 1676) )
goto LABEL_10;
LABEL_23:
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v26, 0x217u);
fmt::BasicWriter::operator<<(&v26, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v26,
*((unsigned __int8 *)this + 1676));
LABEL_10:
v7 = v26;
if ( v27 < v26 + 1 )
fmt::internal::Array::grow(&v26, v26 + 1);
v28[v7] = 0;
*a3 = 0;
v8 = v28;
a3[1] = 0;
a3[2] = 0;
v15 = (char *)v8;
v9 = strlen(v8);
std::string::__init(a3, v15, v9);
if ( v28 != v29 && v28 )
operator delete[](v28);
return a3;
}