//
// GameLevelManager::onSubmitUserInfoCompleted from 0x6ff8a8 to 0x6ff958 (176 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x732ff4
// > ??> @ 0x6b0b8
//
// 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 GameLevelManager::onSubmitUserInfoCompleted()
{
void *v0; // x0
unsigned int *v2; // x2
int v3; // w1
__int64 v4; // [xsp+30h] [xbp+30h] BYREF
sub_D153B8((int)&v4, "-1");
v0 = (void *)(v4 - 24);
if ( (__int64 *)(v4 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v2 = (unsigned int *)(v4 - 8);
do
v3 = __ldaxr(v2);
while ( __stlxr(v3 - 1, v2) );
}
else
{
v3 = *(_DWORD *)(v4 - 8);
*(_DWORD *)(v4 - 8) = v3 - 1;
}
if ( v3 <= 0 )
operator delete(v0);
}
return _stack_chk_guard;
}