//
// ThreadViewPopup::onSearch from 0xc703cc to 0xc7041c (80 bytes)
//
// 3 xrefs:
// > ??> @ 0x47740
// > ThreadViewPopup::init @ 0xc87038
// > ??> @ 0x15415d8
//
// 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:30 +0000
//
__int64 __fastcall ThreadViewPopup::onSearch(__int64 this, cocos2d::CCObject *a2)
{
ThreadSearchPopup *v2; // x19
ThreadViewPopup *v3; // x1
__int64 v4; // x0
if ( !*(_BYTE *)(this + 790) )
{
v2 = (ThreadSearchPopup *)this;
this = ThreadViewPopup::removedView((ThreadViewPopup *)this);
if ( !(_BYTE)this )
{
v4 = ThreadSearchPopup::create(v2, v3);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
}
return this;
}