//
// EndTriggerGameObject::getSaveString from 0x8af450 to 0x8af7d0 (896 bytes)
//
// 2 xrefs:
// > ??> @ 0xb9548
// > ??> @ 0x1452340
//
// 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 EndTriggerGameObject::getSaveString@(
EndTriggerGameObject *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+A0h] [xbp+A0h] BYREF
char *v13; // [xsp+B0h] [xbp+B0h]
size_t v14; // [xsp+B8h] [xbp+B8h] BYREF
unsigned __int64 v15; // [xsp+C0h] [xbp+C0h]
char *v16; // [xsp+C8h] [xbp+C8h]
_BYTE v17[504]; // [xsp+D0h] [xbp+D0h] 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_18;
}
}
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 ( !*((_BYTE *)this + 1840) )
goto LABEL_7;
goto LABEL_19;
}
LABEL_18:
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 ( !*((_BYTE *)this + 1840) )
{
LABEL_7:
if ( !*((_BYTE *)this + 1841) )
goto LABEL_8;
LABEL_20:
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v14, 0x1CDu);
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v14,
*((unsigned __int8 *)this + 1841));
if ( !*((_BYTE *)this + 1842) )
goto LABEL_9;
goto LABEL_21;
}
LABEL_19:
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v14, 0x1CCu);
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v14,
*((unsigned __int8 *)this + 1840));
if ( *((_BYTE *)this + 1841) )
goto LABEL_20;
LABEL_8:
if ( !*((_BYTE *)this + 1842) )
goto LABEL_9;
LABEL_21:
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v14, 0x1E7u);
fmt::BasicWriter::operator<<(&v14, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v14,
*((unsigned __int8 *)this + 1842));
LABEL_9:
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;
}