//
// MessageThreadsPage::onClearSearch from 0xc784c0 to 0xc78598 (216 bytes)
//
// 3 xrefs:
// > ??> @ 0x99ec8
// > MessageThreadsPage::init @ 0xc75a1c
// > ??> @ 0x1544358
//
// 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:05:34 +0000
//
__int64 __fastcall MessageThreadsPage::onClearSearch(MessageThreadsPage *this, cocos2d::CCObject *a2)
{
_QWORD *v3; // x0
__int64 *v4; // x0
__int64 v5; // x2
_QWORD v7[2]; // [xsp+20h] [xbp+20h] BYREF
void *v8; // [xsp+30h] [xbp+30h]
v3 = *((_QWORD **)this + 98);
if ( !v3 || (v7[0] = 0, v7[1] = 0, v8 = nullptr, CCTextInputNode::setString(v3, (char *)v7), (v7[0] & 1) == 0) )
{
v4 = (__int64 *)((char *)this + 808);
v5 = *((_BYTE *)this + 808) >> 1;
if ( (*((_BYTE *)this + 808) & 1) == 0 )
goto LABEL_4;
goto LABEL_7;
}
operator delete(v8);
v4 = (__int64 *)((char *)this + 808);
v5 = *((_BYTE *)this + 808) >> 1;
if ( (*((_BYTE *)this + 808) & 1) != 0 )
LABEL_7:
v5 = v4[1];
LABEL_4:
if ( v5 )
{
std::string::assign(v4, &byte_11B8890);
MessageThreadsPage::loadPage(this, 0, 0);
}
return _stack_chk_guard;
}