//
// ShareCommentLayer::onClear from 0x1005e0dd0 to 0x1005e0e41 (113 bytes)
//
// 1 xrefs:
// > ShareCommentLayer::init @ 0x1005e0224
//
// 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 ShareCommentLayer::onClear(ShareCommentLayer *a1, cocos2d::CCObject *a2)
{
__m128 v2; // xmm0
CCTextInputNode *m_commentInput; // rdi
std::string __str; // [rsp+0h] [rbp-40h] BYREF
_WORD v5[8]; // [rsp+18h] [rbp-28h] BYREF
void *__p; // [rsp+28h] [rbp-18h]
*(_WORD *)&__str.__r_.__value_.__l.0 = 0;
std::string::operator=((std::string *)&a1->m_descText, &__str);
ShareCommentLayer::updateCharCountLabel(a1);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
m_commentInput = a1->m_commentInput;
v5[0] = 0;
CCTextInputNode::setString(m_commentInput, (__int64)v5, v2);
if ( (v5[0] & 1) != 0 )
operator delete(__p);
}