//
// ItemTriggerGameObject::getSaveString from 0x8b1244 to 0x8b2284 (4160 bytes)
//
// 2 xrefs:
// > ??> @ 0x57478
// > ??> @ 0x1454380
//
// 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:23 +0000
//
__int64 *__usercall ItemTriggerGameObject::getSaveString@(
ItemTriggerGameObject *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
double v13; // d0
double v14; // d0
double v15; // d0
char *v16; // [xsp+48h] [xbp+48h]
__int64 v17[2]; // [xsp+260h] [xbp+260h] BYREF
char *v18; // [xsp+270h] [xbp+270h]
_DWORD v19[5]; // [xsp+278h] [xbp+278h] BYREF
char v20; // [xsp+28Ch] [xbp+28Ch]
_DWORD v21[5]; // [xsp+290h] [xbp+290h] BYREF
char v22; // [xsp+2A4h] [xbp+2A4h]
_DWORD v23[5]; // [xsp+2A8h] [xbp+2A8h] BYREF
char v24; // [xsp+2BCh] [xbp+2BCh]
_DWORD v25[5]; // [xsp+2C0h] [xbp+2C0h] BYREF
char v26; // [xsp+2D4h] [xbp+2D4h]
size_t v27; // [xsp+2D8h] [xbp+2D8h] BYREF
unsigned __int64 v28; // [xsp+2E0h] [xbp+2E0h]
char *v29; // [xsp+2E8h] [xbp+2E8h]
_BYTE v30[504]; // [xsp+2F0h] [xbp+2F0h] BYREF
v27 = 0;
v28 = 500;
v29 = v30;
EffectGameObject::getSaveString(this, a2, v17);
if ( (v17[0] & 1) != 0 )
{
v5 = v18;
v6 = v17[1];
}
else
{
v5 = (char *)v17 + 1;
v6 = LOBYTE(v17[0]) >> 1;
}
fmt::BasicWriter::operator<<(&v27, v5, v6);
if ( (v17[0] & 1) == 0 )
{
v7 = *((_DWORD *)this + 257);
if ( v7 != 3620 )
goto LABEL_5;
LABEL_43:
if ( *((_DWORD *)this + 420) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x50u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 420));
}
if ( *((_DWORD *)this + 417) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x5Fu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 417));
}
if ( *((_DWORD *)this + 366) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x33u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 366));
}
if ( *((_DWORD *)this + 367) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x47u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 367));
}
if ( *((_DWORD *)this + 460) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1DCu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 460));
}
if ( *((_DWORD *)this + 461) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1DDu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 461));
}
if ( *((float *)this + 463) != 0.0 )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1DFu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
v14 = *((float *)this + 463);
v21[1] = 32;
v21[0] = 0;
v21[2] = 0;
v21[3] = 0;
v21[4] = -1;
v22 = 0;
fmt::BasicWriter::FormatDouble(&v27, v21, v14);
}
if ( *((float *)this + 464) != 0.0 )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E3u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
v13 = *((float *)this + 464);
v23[1] = 32;
v23[0] = 0;
v23[2] = 0;
v23[3] = 0;
v23[4] = -1;
v24 = 0;
fmt::BasicWriter::FormatDouble(&v27, v23, v13);
}
if ( *((_DWORD *)this + 465) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E0u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 465));
}
if ( *((_DWORD *)this + 466) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E1u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 466));
}
if ( *((_DWORD *)this + 467) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E2u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 467));
}
if ( *((float *)this + 468) != 0.0 )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E4u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
v12 = *((float *)this + 468);
v25[1] = 32;
v25[0] = 0;
v25[2] = 0;
v25[3] = 0;
v25[4] = -1;
v26 = 0;
fmt::BasicWriter::FormatDouble(&v27, v25, v12);
}
if ( *((_DWORD *)this + 469) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E5u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 469));
}
if ( *((_DWORD *)this + 470) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E6u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 470));
}
if ( *((_DWORD *)this + 471) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x242u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 471));
}
if ( *((_DWORD *)this + 472) )
goto LABEL_41;
goto LABEL_7;
}
operator delete(v18);
v7 = *((_DWORD *)this + 257);
if ( v7 == 3620 )
goto LABEL_43;
LABEL_5:
if ( v7 == 3641 )
{
if ( *((_DWORD *)this + 420) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x50u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 420));
}
if ( *((_BYTE *)this + 1892) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1EBu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((unsigned __int8 *)this + 1892));
}
if ( *((_BYTE *)this + 1893) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1ECu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((unsigned __int8 *)this + 1893));
}
if ( *((_BYTE *)this + 1894) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1EDu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((unsigned __int8 *)this + 1894));
}
if ( *((_BYTE *)this + 1895) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1EEu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((unsigned __int8 *)this + 1895));
}
}
else if ( v7 == 3619 )
{
if ( *((_DWORD *)this + 420) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x50u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 420));
}
if ( *((_DWORD *)this + 417) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x5Fu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 417));
}
if ( *((_DWORD *)this + 460) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1DCu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 460));
}
if ( *((_DWORD *)this + 461) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1DDu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 461));
}
if ( *((_DWORD *)this + 462) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1DEu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 462));
}
if ( *((_DWORD *)this + 366) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x33u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 366));
}
if ( *((float *)this + 463) != 0.0 )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1DFu);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
v15 = *((float *)this + 463);
v19[1] = 32;
v19[0] = 0;
v19[2] = 0;
v19[3] = 0;
v19[4] = -1;
v20 = 0;
fmt::BasicWriter::FormatDouble(&v27, v19, v15);
}
if ( *((_DWORD *)this + 465) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E0u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 465));
}
if ( *((_DWORD *)this + 466) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E1u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 466));
}
if ( *((_DWORD *)this + 467) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E2u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 467));
}
if ( *((_DWORD *)this + 469) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E5u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 469));
}
if ( *((_DWORD *)this + 470) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x1E6u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 470));
}
if ( *((_DWORD *)this + 471) )
{
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x242u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 471));
}
if ( *((_DWORD *)this + 472) )
{
LABEL_41:
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(&v27, 0x243u);
fmt::BasicWriter::operator<<(&v27, &byte_1169BE0, 0);
fmt::BasicWriter::FormatInt,char>>(
&v27,
*((_DWORD *)this + 472));
}
}
LABEL_7:
v8 = v27;
if ( v28 < v27 + 1 )
fmt::internal::Array::grow(&v27, v27 + 1);
v29[v8] = 0;
*a3 = 0;
v9 = v29;
a3[1] = 0;
a3[2] = 0;
v16 = (char *)v9;
v10 = strlen(v9);
std::string::__init(a3, v16, v10);
if ( v29 != v30 && v29 )
operator delete[](v29);
return a3;
}