//
// GameLevelManager::createAndGetLevelComments from 0x10054fe10 to 0x10054fe7d (109 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
//
__int64 __fastcall GameLevelManager::createAndGetLevelComments(__int64 a1, __int128 *a2, __int64 a3, double a4)
{
unsigned int v4; // r14d
__int64 result; // rax
__int64 v6; // rbx
__int128 v7; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
if ( (*(_BYTE *)a2 & 1) != 0 )
{
v4 = a3;
sub_100006B70(&v7, *((const void **)a2 + 2), *((_QWORD *)a2 + 1), a4);
a3 = v4;
}
else
{
__p = *((void **)a2 + 2);
v7 = *a2;
}
result = GameLevelManager::createAndGetCommentsFull(a1, &v7, a3, 0);
if ( (v7 & 1) != 0 )
{
v6 = result;
operator delete(__p);
return v6;
}
return result;
}