//
// StartPosObject::getSaveString from 0x777e80 to 0x777fc0 (320 bytes)
//
// 2 xrefs:
// > ??> @ 0x9bd90
// > ??> @ 0x116a3a0
//
// 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
//
__int64 __usercall StartPosObject::getSaveString@(
StartPosObject *this@,
GJBaseGameLayer *a2@,
__int64 a3@)
{
void *v5; // x0
unsigned int *v7; // x2
int v8; // w1
__int64 v9; // [xsp+40h] [xbp+40h] BYREF
EffectGameObject::getSaveString(this, a2, a3);
if ( this->m_startSettings )
{
sub_D15FD4(a3, &byte_F804F8, 1);
LevelSettingsObject::getSaveString(this->m_startSettings, (__int64)&v9);
sub_D15E14(a3, &v9);
v5 = (void *)(v9 - 24);
if ( (__int64 *)(v9 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v7 = (unsigned int *)(v9 - 8);
do
v8 = __ldaxr(v7);
while ( __stlxr(v8 - 1, v7) );
}
else
{
v8 = *(_DWORD *)(v9 - 8);
*(_DWORD *)(v9 - 8) = v8 - 1;
}
if ( v8 <= 0 )
operator delete(v5);
}
}
return a3;
}