//
// CountTriggerGameObject::getSaveString from 0x8ae460 to 0x8aec20 (1984 bytes)
//
// 2 xrefs:
// > ??> @ 0xcbf80
// > ??> @ 0x1451320
//
// 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 CountTriggerGameObject::getSaveString@(
CountTriggerGameObject *this@,
GJBaseGameLayer *a2@,
__int64 *a3@)
{
const char *v5; // x1
size_t v6; // x2
int v7; // w0
size_t v8; // x20
const char *v9; // x1
size_t v10; // x0
double v12; // d0
char *v13; // [xsp+48h] [xbp+48h]
__int64 v14[2]; // [xsp+138h] [xbp+138h] BYREF
char *v15; // [xsp+148h] [xbp+148h]
_DWORD v16[5]; // [xsp+150h] [xbp+150h] BYREF
char v17; // [xsp+164h] [xbp+164h]
size_t v18; // [xsp+168h] [xbp+168h] BYREF
unsigned __int64 v19; // [xsp+170h] [xbp+170h]
char *v20; // [xsp+178h] [xbp+178h]
_BYTE v21[504]; // [xsp+180h] [xbp+180h] BYREF
v18 = 0;
v19 = 500;
v20 = v21;
EffectGameObject::getSaveString(this, a2, v14);
if ( (v14[0] & 1) != 0 )
{
v5 = v15;
v6 = v14[1];
}
else
{
v5 = (char *)v14 + 1;
v6 = LOBYTE(v14[0]) >> 1;
}
fmt::BasicWriter::operator<<(&v18, v5, v6);
if ( (v14[0] & 1) == 0 )
{
v7 = *((_DWORD *)this + 257);
if ( v7 != 1811 )
goto LABEL_5;
LABEL_25:
if ( *((_DWORD *)this + 366) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x33u);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((_DWORD *)this + 366));
}
if ( *((_DWORD *)this + 420) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x50u);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((_DWORD *)this + 420));
}
if ( *((_DWORD *)this + 460) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x4Du);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((_DWORD *)this + 460));
}
if ( *((_BYTE *)this + 1637) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x38u);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((unsigned __int8 *)this + 1637));
}
if ( *((_DWORD *)this + 461) )
goto LABEL_34;
goto LABEL_7;
}
operator delete(v15);
v7 = *((_DWORD *)this + 257);
if ( v7 == 1811 )
goto LABEL_25;
LABEL_5:
if ( v7 != 1817 )
{
if ( v7 == 1611 )
{
if ( *((_DWORD *)this + 366) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x33u);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((_DWORD *)this + 366));
}
if ( *((_DWORD *)this + 420) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x50u);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((_DWORD *)this + 420));
}
if ( *((_DWORD *)this + 460) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x4Du);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((_DWORD *)this + 460));
}
if ( *((_BYTE *)this + 1637) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x38u);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((unsigned __int8 *)this + 1637));
}
if ( *((_BYTE *)this + 1848) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x68u);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((unsigned __int8 *)this + 1848));
}
}
goto LABEL_7;
}
if ( *((_DWORD *)this + 420) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x50u);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((_DWORD *)this + 420));
}
if ( *((_DWORD *)this + 460) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x4Du);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((_DWORD *)this + 460));
}
if ( *((_BYTE *)this + 1849) )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x8Bu);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((unsigned __int8 *)this + 1849));
}
if ( *((float *)this + 463) != 0.0 )
{
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x1C1u);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
v12 = *((float *)this + 463);
v16[1] = 32;
v16[0] = 0;
v16[2] = 0;
v16[3] = 0;
v16[4] = -1;
v17 = 0;
fmt::BasicWriter::FormatDouble(&v18, v16, v12);
}
if ( *((_DWORD *)this + 461) )
{
LABEL_34:
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v18, 0x58u);
fmt::BasicWriter::operator<<(&v18, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v18,
*((_DWORD *)this + 461));
}
LABEL_7:
v8 = v18;
if ( v19 < v18 + 1 )
fmt::internal::Array::grow(&v18, v18 + 1);
v20[v8] = 0;
*a3 = 0;
v9 = v20;
a3[1] = 0;
a3[2] = 0;
v13 = (char *)v9;
v10 = strlen(v9);
std::string::__init(a3, v13, v10);
if ( v20 != v21 && v20 )
operator delete[](v20);
return a3;
}