//
// GameLevelManager::createAndGetLevelComments from 0x10056a660 to 0x10056a6d6 (118 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:32:12 +0000
//
__int64 __fastcall GameLevelManager::createAndGetLevelComments(__int64 a1, __int128 *a2, __int64 a3, unsigned int a4)
{
unsigned int v5; // r15d
__int64 result; // rax
__int64 v7; // rbx
__int128 v8; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
if ( (*(_BYTE *)a2 & 1) != 0 )
{
v5 = a3;
sub_10001AD30(&v8, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
a3 = v5;
}
else
{
__p = *((void **)a2 + 2);
v8 = *a2;
}
result = sub_10056AAF0(a1, &v8, a3, 0, a4);
if ( (v8 & 1) != 0 )
{
v7 = result;
operator delete(__p);
return v7;
}
return result;
}