//
// GameLevelManager::createAndGetLevelComments from 0x84af2c to 0x84b010 (228 bytes)
//
// 2 xrefs:
// > GameLevelManager::onGetLevelCommentsCompleted @ 0x84b264
// > ??> @ 0xb5540
//
// This function is hookable on this platform (idp: arm, 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:55:23 +0000
//
cocos2d::CCArray *__fastcall GameLevelManager::createAndGetLevelComments(_QWORD *a1, char *a2, int a3, int a4)
{
int v5; // w4
char v8; // w0
__int64 v9; // x0
__int64 v10; // x1
cocos2d::CCArray *CommentsFull; // x20
__int64 v14; // [xsp+40h] [xbp+40h] BYREF
__int64 v15; // [xsp+48h] [xbp+48h]
void *v16; // [xsp+50h] [xbp+50h]
v5 = a4;
v14 = 0;
v8 = *a2;
v15 = 0;
v16 = nullptr;
if ( (v8 & 1) != 0 )
{
std::string::__init(&v14, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
v5 = a4;
}
else
{
v9 = *(_QWORD *)a2;
v10 = *((_QWORD *)a2 + 1);
v16 = *((void **)a2 + 2);
v14 = v9;
v15 = v10;
}
CommentsFull = GameLevelManager::createAndGetCommentsFull(a1, (char *)&v14, a3, 0, v5);
if ( (v14 & 1) != 0 )
operator delete(v16);
return CommentsFull;
}