//
// ShareCommentLayer::create from 0x1006b1100 to 0x1006b1200 (256 bytes)
//
// 6 xrefs:
// > LevelListLayer::onDescription @ 0x1003494f4
// > LevelBrowserLayer::createNewList @ 0x100487499
// > MPLobbyLayer::onComment @ 0x10048ade4
// > InfoLayer::onComment @ 0x100893e8f
// > ProfilePage::onFriend @ 0x1008a233a
// > ProfilePage::onComment @ 0x1008a4716
//
// 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:35:24 +0000
//
void *__fastcall ShareCommentLayer::create(
__int128 *a1,
unsigned int a2,
unsigned int a3,
unsigned int a4,
__int128 *a5)
{
void *v7; // rbx
char v8; // r14
__int128 v10; // [rsp+0h] [rbp-70h] BYREF
void *v11; // [rsp+10h] [rbp-60h]
__int128 v12; // [rsp+20h] [rbp-50h] BYREF
void *__p; // [rsp+30h] [rbp-40h]
unsigned int v14; // [rsp+44h] [rbp-2Ch]
v14 = a4;
v7 = operator new(0x330u);
sub_1006B3BD0(v7);
if ( (*(_BYTE *)a1 & 1) != 0 )
{
sub_10001AD30(&v10, *((const void **)a1 + 2), *((_QWORD *)a1 + 1));
if ( (*(_BYTE *)a5 & 1) != 0 )
goto LABEL_3;
}
else
{
v11 = *((void **)a1 + 2);
v10 = *a1;
if ( (*(_BYTE *)a5 & 1) != 0 )
{
LABEL_3:
sub_10001AD30(&v12, *((const void **)a5 + 2), *((_QWORD *)a5 + 1));
goto LABEL_6;
}
}
__p = *((void **)a5 + 2);
v12 = *a5;
LABEL_6:
v8 = ShareCommentLayer::init(v7, &v10, a2, a3, v14, &v12);
if ( (v12 & 1) == 0 )
{
if ( (v10 & 1) == 0 )
goto LABEL_8;
LABEL_11:
operator delete(v11);
if ( v8 )
goto LABEL_9;
LABEL_12:
(*(void (__fastcall **)(void *))(*(_QWORD *)v7 + 16LL))(v7);
return nullptr;
}
operator delete(__p);
if ( (v10 & 1) != 0 )
goto LABEL_11;
LABEL_8:
if ( !v8 )
goto LABEL_12;
LABEL_9:
cocos2d::CCObject::autorelease((__int64)v7);
return v7;
}