//
// EventLinkTrigger::getSaveString from 0x8ad754 to 0x8adb68 (1044 bytes)
//
// 2 xrefs:
// > ??> @ 0xe6320
// > ??> @ 0x144faf0
//
// 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:21 +0000
//
__int64 *__usercall EventLinkTrigger::getSaveString@(
EventLinkTrigger *this@,
GJBaseGameLayer *a2@,
__int64 *a3@)
{
const char *v5; // x1
size_t v6; // x2
size_t v7; // x19
const char *v8; // x1
size_t v9; // x0
char *v11; // x20
char *v12; // x23
char *v13; // x19
size_t v14; // x28
size_t v15; // x27
char *v16; // [xsp+68h] [xbp+68h]
__int64 v17[2]; // [xsp+C0h] [xbp+C0h] BYREF
char *v18; // [xsp+D0h] [xbp+D0h]
size_t v19; // [xsp+D8h] [xbp+D8h] BYREF
unsigned __int64 v20; // [xsp+E0h] [xbp+E0h]
char *v21; // [xsp+E8h] [xbp+E8h]
_BYTE v22[504]; // [xsp+F0h] [xbp+F0h] BYREF
v19 = 0;
v20 = 500;
v21 = v22;
EffectGameObject::getSaveString(this, a2, v17);
if ( (v17[0] & 1) != 0 )
{
v5 = v18;
v6 = v17[1];
}
else
{
v6 = LOBYTE(v17[0]) >> 1;
v5 = (char *)v17 + 1;
}
fmt::BasicWriter::operator<<(&v19, v5, v6);
if ( (v17[0] & 1) != 0 )
{
operator delete(v18);
if ( !*((_DWORD *)this + 366) )
{
LABEL_5:
if ( !*((_DWORD *)this + 467) )
goto LABEL_6;
goto LABEL_18;
}
}
else if ( !*((_DWORD *)this + 366) )
{
goto LABEL_5;
}
fmt::BasicWriter::operator<<(&v19, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v19, 0x33u);
fmt::BasicWriter::operator<<(&v19, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v19,
*((_DWORD *)this + 366));
if ( !*((_DWORD *)this + 467) )
{
LABEL_6:
if ( !*((_DWORD *)this + 468) )
goto LABEL_7;
goto LABEL_19;
}
LABEL_18:
fmt::BasicWriter::operator<<(&v19, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v19, 0x1BFu);
fmt::BasicWriter::operator<<(&v19, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v19,
*((_DWORD *)this + 467));
if ( !*((_DWORD *)this + 468) )
{
LABEL_7:
if ( !*((_BYTE *)this + 1864) )
goto LABEL_8;
LABEL_20:
fmt::BasicWriter::operator<<(&v19, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v19, 0x1AFu);
fmt::BasicWriter::operator<<(&v19, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v19,
*((unsigned __int8 *)this + 1864));
if ( !*((_QWORD *)this + 232) )
goto LABEL_9;
goto LABEL_21;
}
LABEL_19:
fmt::BasicWriter::operator<<(&v19, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v19, 0x20Du);
fmt::BasicWriter::operator<<(&v19, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v19,
*((_DWORD *)this + 468));
if ( *((_BYTE *)this + 1864) )
goto LABEL_20;
LABEL_8:
if ( !*((_QWORD *)this + 232) )
goto LABEL_9;
LABEL_21:
fmt::BasicWriter::operator<<(&v19, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v19, 0x1AEu);
fmt::BasicWriter::operator<<(&v19, &byte_1169BE0, 0);
v11 = *((char **)this + 230);
v12 = (char *)this + 1848;
if ( v11 != v12 )
{
while ( 1 )
{
fmt::BasicWriter::FormatInt,char>>(
&v19,
*((_DWORD *)v11 + 7));
v13 = *((char **)v11 + 1);
if ( v13 )
{
while ( *(_QWORD *)v13 )
v13 = *(char **)v13;
}
else
{
while ( 1 )
{
v13 = *((char **)v11 + 2);
if ( v11 == *(char **)v13 )
break;
v11 = *((char **)v11 + 2);
}
}
if ( v12 == v13 )
break;
v14 = v19;
v15 = v19 + 1;
if ( v19 + 1 > v20 )
fmt::internal::Array::grow(&v19, v19 + 1);
v11 = v13;
v19 = v15;
v21[v14] = 46;
}
}
LABEL_9:
v7 = v19;
if ( v20 < v19 + 1 )
fmt::internal::Array::grow(&v19, v19 + 1);
v21[v7] = 0;
*a3 = 0;
v8 = v21;
a3[1] = 0;
a3[2] = 0;
v16 = (char *)v8;
v9 = strlen(v8);
std::string::__init(a3, v16, v9);
if ( v21 != v22 && v21 )
operator delete[](v21);
return a3;
}