//
// ShareCommentLayer::onClear from 0x1006b2930 to 0x1006b29a1 (113 bytes)
//
// 1 xrefs:
// > ShareCommentLayer::init @ 0x1006b1a50
//
// 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 12:35:25 +0000
//
void __fastcall ShareCommentLayer::onClear(__int64 a1)
{
_QWORD *v1; // rdi
std::string __str; // [rsp+0h] [rbp-40h] BYREF
_WORD v3[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 + 728), &__str);
ShareCommentLayer::updateCharCountLabel(a1);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
v1 = *(_QWORD **)(a1 + 704);
v3[0] = 0;
CCTextInputNode::setString(v1, (__int64)v3);
if ( (v3[0] & 1) != 0 )
operator delete(__p);
}