//
// CCTextInputNode::clearText from 0x6c4278 to 0x6c4310 (152 bytes)
//
// 2 xrefs:
// > CCTextInputMenu::onClear @ 0x6b6ce4
// > ??> @ 0xe4868
//
// 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 12:51:20 +0000
//
__int64 __fastcall CCTextInputNode::clearText(CCTextInputNode *this)
{
__int64 v1; // x3
_QWORD v4[2]; // [xsp+20h] [xbp+20h] BYREF
void *v5; // [xsp+30h] [xbp+30h]
v1 = *((_QWORD *)this + 72);
v4[0] = 0;
*(_DWORD *)(v1 + 752) = -1;
v4[1] = 0;
v5 = nullptr;
CCTextInputNode::setString(this, (char *)v4);
if ( (v4[0] & 1) != 0 )
operator delete(v5);
CCTextInputNode::updateBlinkLabel(this);
return _stack_chk_guard;
}