//
// MPLobbyLayer::onComment from 0xb05984 to 0xb05a80 (252 bytes)
//
// 1 xrefs:
// > ??> @ 0x49e10
//
// 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 13:01:23 +0000
//
__int64 __fastcall MPLobbyLayer::onComment(MPLobbyLayer *this, cocos2d::CCObject *a2)
{
int v2; // w3
__int64 v3; // x20
char v5; // [xsp+28h] [xbp+28h] BYREF
char v6[13]; // [xsp+29h] [xbp+29h] BYREF
__int16 v7; // [xsp+36h] [xbp+36h]
void *v8; // [xsp+38h] [xbp+38h]
_QWORD v9[2]; // [xsp+40h] [xbp+40h] BYREF
void *v10; // [xsp+50h] [xbp+50h]
v2 = *((_DWORD *)this + 112);
v6[12] = 0;
v7 = 0;
v8 = nullptr;
strcpy(v6, "Add Comment");
v5 = 22;
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
v3 = ShareCommentLayer::create(&v5, 100, 3u, v2, (char *)v9);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
if ( (v5 & 1) != 0 )
operator delete(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
return _stack_chk_guard;
}