//
// MessageThreadsPage::onClearSearch from 0x1009299a0 to 0x100929a1c (124 bytes)
//
// 1 xrefs:
// > MessageThreadsPage::init @ 0x100928a1b
//
// 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:38:21 +0000
//
__int64 __fastcall MessageThreadsPage::onClearSearch(__int64 a1)
{
_QWORD *v2; // rdi
unsigned int v3; // eax
__int64 result; // rax
_WORD v5[8]; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v2 = *(_QWORD **)(a1 + 784);
if ( v2 )
{
v5[0] = 0;
CCTextInputNode::setString(v2, (__int64)v5);
if ( (v5[0] & 1) != 0 )
operator delete(__p);
}
v3 = *(unsigned __int8 *)(a1 + 808);
if ( (v3 & 1) != 0 )
{
result = *(_QWORD *)(a1 + 816);
if ( !result )
return result;
goto LABEL_8;
}
result = v3 >> 1;
if ( result )
{
LABEL_8:
std::string::assign((std::string *)(a1 + 808), "");
return MessageThreadsPage::loadPage(a1, 0, 0);
}
return result;
}