//
// ShareCommentLayer::create from 0x14048ce10 to 0x14048d014 (516 bytes)
//
// 6 xrefs:
// > InfoLayer::onComment @ 0x1402bdb59
// > LevelBrowserLayer::onNew @ 0x1402cddb6
// > LevelListLayer::onDescription @ 0x1403078f8
// > ProfilePage::onComment @ 0x1403c3eb6
// > ProfilePage::onFriend @ 0x1403c3fa2
// > ??> @ 0x1406dbf48
//
// 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
//
// Hidden C++ exception states: #wind=4
char *__fastcall ShareCommentLayer::create(__int64 a1, int a2, int a3, int a4, __int64 a5)
{
char *v9; // r14
__int64 v10; // rbx
int v11; // eax
char v13[32]; // [rsp+40h] [rbp-A8h] BYREF
char v14[32]; // [rsp+60h] [rbp-88h] BYREF
__int64 v15; // [rsp+80h] [rbp-68h]
__int64 v16; // [rsp+88h] [rbp-60h]
v15 = a1;
v16 = a5;
v9 = (char *)operator new(0x310u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v9);
*(_QWORD *)v9 = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 40) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 41) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 42) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 43) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 44) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 51) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 54) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 79) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 80) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 81) = &ShareCommentLayer::`vftable';
*((_DWORD *)v9 + 166) = 0;
*((_QWORD *)v9 + 84) = 0;
*(_OWORD *)(v9 + 680) = 0;
*((_QWORD *)v9 + 87) = 0;
*((_QWORD *)v9 + 88) = 15;
v9[680] = 0;
*(_OWORD *)(v9 + 712) = 0;
*((_QWORD *)v9 + 91) = 0;
*((_QWORD *)v9 + 92) = 15;
v9[712] = 0;
*((_QWORD *)v9 + 93) = 0;
*((_QWORD *)v9 + 95) = 0;
*((_WORD *)v9 + 384) = 0;
*((_DWORD *)v9 + 193) = 0;
*((_QWORD *)v9 + 97) = 0;
v10 = sub_14003BDB0((__int64)v13, a5);
v11 = sub_14003BDB0((__int64)v14, a1);
if ( (unsigned __int8)ShareCommentLayer::init((_DWORD)v9, v11, a2, a3, a4, v10) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);
v9 = nullptr;
}
sub_14003A830(a1);
sub_14003A830(a5);
return v9;
}