//
// ThreadViewPopup::exitSearch from 0x75bd58 to 0x75be7c (292 bytes)
//
// 4 xrefs:
// > ThreadViewPopup::onClearSearch @ 0x75be7e
// > ThreadViewPopup::goToDate @ 0x75bedc
// > ThreadViewPopup::openAt @ 0x75c08a
// > ThreadViewPopup::keyBackClicked @ 0x75d472
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:58:59 +0000
//
void __fastcall ThreadViewPopup::exitSearch(ThreadViewPopup *this, int a2)
{
int v3; // r5
char v5; // r3
const char *v6; // r2
int v7; // r0
int v8; // r0
int v9; // r3
cocos2d::CCObject *v10; // r0
v3 = *((unsigned __int8 *)this + 808);
if ( *((_BYTE *)this + 808) )
{
v5 = *((_BYTE *)this + 812);
v6 = nullptr;
*((_BYTE *)this + 808) = 0;
if ( (v5 & 1) != 0 )
{
**((_BYTE **)this + 205) = 0;
*((_DWORD *)this + 204) = 0;
}
else
{
*((_BYTE *)this + 813) = 0;
*((_BYTE *)this + 812) = 0;
}
v7 = *((_DWORD *)this + 221);
if ( v7 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v7 + 172))(v7, 0);
v8 = *((_DWORD *)this + 222);
if ( v8 )
{
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v8 + 172))(v8, 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 222) + 528))(*((_DWORD *)this + 222), 0);
}
ThreadViewPopup::refreshLockNotice(this, a2, v6);
ThreadViewPopup::updateComposeCount((int)this);
v9 = *((_DWORD *)this + 206);
if ( a2 )
{
if ( v9 )
{
v10 = *((cocos2d::CCObject **)this + 142);
*((_DWORD *)this + 142) = v9;
*((_DWORD *)this + 206) = 0;
cocos2d::CCObject::release(v10);
*((_QWORD *)this + 72) = *((_QWORD *)this + 104);
*((_QWORD *)this + 73) = *((_QWORD *)this + 105);
*((_BYTE *)this + 596) = *((_BYTE *)this + 848);
if ( !*((_BYTE *)this + 856) && !ThreadViewPopup::dmSendBlocked(this) )
v3 = *((unsigned __int8 *)this + 598);
ThreadViewPopup::setSendPending(this, v3);
ThreadViewPopup::buildRows(this, 0);
ScrollableContentLayer::scrollTo(*((ScrollableContentLayer **)this + 155), *((float *)this + 213));
if ( *((float *)this + 174) > 0.0 && !*((_BYTE *)this + 598) && !*((_BYTE *)this + 856) )
ThreadViewPopup::setPollInterval((int)this, *((float *)this + 174));
if ( !*((_BYTE *)this + 856) )
ThreadViewPopup::refetchLatest((int)this);
}
}
else if ( v9 )
{
cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 206));
*((_DWORD *)this + 206) = 0;
}
}
}