//
// ShareCommentLayer::create from 0x10026c4dc to 0x10026c5ec (272 bytes)
//
// 5 xrefs:
// > ProfilePage::onFriend @ 0x10022db24
// > sub_10022F330 @ 0x10022f3f0
// > sub_1002E211C @ 0x1002e216c
// > sub_1003EFD70 @ 0x1003effe4
// > LevelBrowserLayer::createNewList @ 0x10049a5c0
//
// 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 11:01:44 +0000
//
void *__fastcall ShareCommentLayer::create(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
void *v10; // x19
int v11; // w20
void *__p[2]; // [xsp+0h] [xbp-70h] BYREF
__int64 v14; // [xsp+10h] [xbp-60h]
void *__dst[2]; // [xsp+20h] [xbp-50h] BYREF
__int64 v16; // [xsp+30h] [xbp-40h]
v10 = operator new(0x330u);
ShareCommentLayer::ShareCommentLayer();
if ( *(char *)(a1 + 23) < 0 )
{
sub_1000097D0(__dst, *(void **)a1, *(_QWORD *)(a1 + 8));
}
else
{
*(_OWORD *)__dst = *(_OWORD *)a1;
v16 = *(_QWORD *)(a1 + 16);
}
if ( *(char *)(a5 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a5, *(_QWORD *)(a5 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a5;
v14 = *(_QWORD *)(a5 + 16);
}
v11 = ShareCommentLayer::init(v10, __dst, a2, a3, a4, __p);
if ( SHIBYTE(v14) < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v16) < 0 )
{
operator delete(__dst[0]);
if ( v11 )
goto LABEL_11;
LABEL_13:
(*(void (__fastcall **)(void *))(*(_QWORD *)v10 + 16LL))(v10);
return nullptr;
}
if ( !v11 )
goto LABEL_13;
LABEL_11:
cocos2d::CCObject::autorelease((__int64)v10);
return v10;
}