//
// InvitesPopup::onClearSearch from 0xc82d2c to 0xc82e04 (216 bytes)
//
// 3 xrefs:
// > ??> @ 0xab820
// > InvitesPopup::init @ 0xc6c9a8
// > ??> @ 0x1544d90
//
// 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:40 +0000
//
__int64 __fastcall InvitesPopup::onClearSearch(InvitesPopup *this, cocos2d::CCObject *a2)
{
_QWORD *v3; // x0
int v4; // w0
char *v5; // x1
_QWORD v7[2]; // [xsp+20h] [xbp+20h] BYREF
void *v8; // [xsp+30h] [xbp+30h]
v3 = *((_QWORD **)this + 104);
if ( !v3 || (v7[0] = 0, v7[1] = 0, v8 = nullptr, CCTextInputNode::setString(v3, (char *)v7), (v7[0] & 1) == 0) )
{
v4 = *((unsigned __int8 *)this + 840);
v5 = (char *)this + 840;
if ( (v4 & 1) == 0 )
goto LABEL_4;
LABEL_8:
if ( !*((_QWORD *)v5 + 1) )
return _stack_chk_guard;
**((_BYTE **)v5 + 2) = 0;
*((_QWORD *)v5 + 1) = 0;
goto LABEL_6;
}
operator delete(v8);
v4 = *((unsigned __int8 *)this + 840);
v5 = (char *)this + 840;
if ( (v4 & 1) != 0 )
goto LABEL_8;
LABEL_4:
if ( v4 >> 1 )
{
*((_BYTE *)this + 841) = 0;
*((_BYTE *)this + 840) = 0;
LABEL_6:
InvitesPopup::buildRows((cocos2d::CCArray **)this);
}
return _stack_chk_guard;
}