//
// ThreadViewPopup::setUnseenBelow from 0xc65fc4 to 0xc66030 (108 bytes)
//
// 9 xrefs:
// > ThreadViewPopup::checkUnseenBelow @ 0xc66064
// > ThreadViewPopup::scrollToUnreadLine @ 0xc66160
// > ThreadViewPopup::onScrollToBottom @ 0xc661cc
// > ThreadViewPopup::threadSearchFinished @ 0xc890b8
// > ThreadViewPopup::onSend @ 0xc89ba8
// > ThreadViewPopup::threadMessagesFinished @ 0xc8a670
// > ThreadViewPopup::threadMessagesFinished @ 0xc8a984
// > ThreadViewPopup::threadMessagesFinished @ 0xc8acc8
// > ??> @ 0x54c40
//
// 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:25 +0000
//
__int64 __fastcall ThreadViewPopup::setUnseenBelow(ThreadViewPopup *this, unsigned __int8 a2)
{
int v3; // w20
__int64 v4; // x0
__int64 result; // x0
v3 = a2;
v4 = *((_QWORD *)this + 128);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, a2);
result = cocos2d::CCNode::unschedule(this, ThreadViewPopup::checkUnseenBelow, 0);
if ( v3 )
return cocos2d::CCNode::schedule(this, ThreadViewPopup::checkUnseenBelow, 0, 0.15);
return result;
}