//
// ShareCommentLayer::create from 0x14062dc40 to 0x14062de67 (551 bytes)
//
// 6 xrefs:
// > InfoLayer::onComment @ 0x1403d0ca2
// > LevelBrowserLayer::onNew @ 0x1403e7f78
// > LevelListLayer::onDescription @ 0x14042f788
// > ProfilePage::onComment @ 0x140556e10
// > ProfilePage::onFriend @ 0x140556f75
// > ??> @ 0x1409309c8
//
// 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 11:35:27 +0000
//
// 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(0x340u);
FLAlertLayer::FLAlertLayer((__int64)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 + 68) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 83) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 84) = &ShareCommentLayer::`vftable';
*((_QWORD *)v9 + 85) = &ShareCommentLayer::`vftable';
*((_DWORD *)v9 + 174) = 0;
v9[700] = 0;
*((_QWORD *)v9 + 88) = 0;
*((_QWORD *)v9 + 89) = 0;
*((_QWORD *)v9 + 90) = 0;
*(_OWORD *)(v9 + 728) = 0;
*((_QWORD *)v9 + 93) = 0;
*((_QWORD *)v9 + 94) = 15;
v9[728] = 0;
*(_OWORD *)(v9 + 760) = 0;
*((_QWORD *)v9 + 97) = 0;
*((_QWORD *)v9 + 98) = 15;
v9[760] = 0;
*((_QWORD *)v9 + 99) = 0;
*((_QWORD *)v9 + 101) = 0;
*((_WORD *)v9 + 408) = 0;
*((_DWORD *)v9 + 205) = 0;
*((_QWORD *)v9 + 103) = 0;
v10 = sub_14003F4F0((__int64)v13, a5);
v11 = sub_14003F4F0((__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_14003D310(a1);
sub_14003D310(a5);
return v9;
}