//
// MPLobbyLayer::postComment from 0x100493f10 to 0x100493fc7 (183 bytes)
//
// 2 xrefs:
// > MPLobbyLayer::keyDown @ 0x10049483a
// > sub_100494850 @ 0x100494861
//
// 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
//
void __fastcall MPLobbyLayer::postComment(MPLobbyLayer *a1)
{
__m128 v1; // xmm0
void *v2; // r14
GJMultiplayerManager *v3; // r14
CCTextInputNode *m_commentInput; // rdi
void *v5[3]; // [rsp+8h] [rbp-68h] BYREF
void *v6[3]; // [rsp+20h] [rbp-50h] BYREF
_WORD v7[8]; // [rsp+38h] [rbp-38h] BYREF
void *v8; // [rsp+48h] [rbp-28h]
CCTextInputNode::getString(v5, (__int64)a1->m_commentInput, *(double *)v1.i64);
if ( ((__int64)v5[0] & 1) != 0 )
{
v2 = v5[1];
operator delete(v5[2]);
if ( !v2 )
return;
}
else if ( !LOBYTE(v5[0]) )
{
return;
}
v3 = GJMultiplayerManager::sharedState();
CCTextInputNode::getString(v6, (__int64)a1->m_commentInput, *(double *)v1.i64);
GJMultiplayerManager::uploadComment(v3, v6, (unsigned int)a1->m_lobbyID);
if ( ((__int64)v6[0] & 1) != 0 )
operator delete(v6[2]);
m_commentInput = a1->m_commentInput;
v7[0] = 0;
CCTextInputNode::setString(m_commentInput, (__int64)v7, v1);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
}