//
// TextGameObject::getSaveString from 0x364b28 to 0x364c68 (320 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
TextGameObject *__fastcall TextGameObject::getSaveString(TextGameObject *this, GJBaseGameLayer *a2, GameObject *a3)
{
char *v5; // r0
char *v7; // [sp+0h] [bp-218h] BYREF
std::string v8; // [sp+4h] [bp-214h] BYREF
char *v9; // [sp+8h] [bp-210h] BYREF
const char *v10; // [sp+Ch] [bp-20Ch]
size_t v11; // [sp+10h] [bp-208h]
unsigned int v12[3]; // [sp+14h] [bp-204h] BYREF
char v13; // [sp+20h] [bp-1F8h] BYREF
v12[0] = 0;
v12[1] = 500;
v12[2] = (unsigned int)&v13;
GameObject::getSaveString((GameObject *)&v7, a2, a3);
v10 = v7;
v11 = *((_DWORD *)v7 - 3);
fmt::BasicWriter::operator<<(v12, v7, v11);
sub_774008(&v7);
v10 = ",";
v11 = 0;
fmt::BasicWriter::operator<<(v12, ",", 0);
fmt::BasicWriter::operator<<(v12, 31);
v10 = ",";
v11 = 0;
fmt::BasicWriter::operator<<(v12, ",", 0);
sub_775C20(&v8, &a2->m_gameState.m_unkMapPairGJGameEventIntInt.m_header.m_right);
LevelTools::base64EncodeString((cocos2d::ZipUtils *)&v9, &v8);
v10 = v9;
v11 = 0;
fmt::BasicWriter::operator<<(v12, v9, 0);
sub_774008(&v9);
sub_774008(&v8);
if ( a2->m_gameState.m_unkMapPairGJGameEventIntInt.m_nodecount )
{
v10 = ",";
v11 = 0;
fmt::BasicWriter::operator<<(v12, ",", 0);
fmt::BasicWriter::operator<<(v12, 488);
v10 = ",";
v11 = 0;
fmt::BasicWriter::operator<<(v12, ",", 0);
fmt::BasicWriter::operator<<(v12, a2->m_gameState.m_unkMapPairGJGameEventIntInt.m_nodecount);
}
v5 = (char *)fmt::BasicWriter::c_str((int *)v12);
sub_776584((int)this, v5);
fmt::internal::Array::free((int)v12);
return this;
}