//
// ThreadViewPopup::setPollInterval from 0xc65b64 to 0xc65bf8 (148 bytes)
//
// 9 xrefs:
// > ThreadViewPopup::threadMessagesFailed @ 0xc65e90
// > ThreadViewPopup::refetchLatest @ 0xc65f08
// > ThreadViewPopup::exitSearch @ 0xc86724
// > ThreadViewPopup::threadSearchFinished @ 0xc890ac
// > ThreadViewPopup::threadMessagesFinished @ 0xc8a45c
// > ThreadViewPopup::threadMessagesFinished @ 0xc8a51c
// > ThreadViewPopup::threadMessagesFinished @ 0xc8a6cc
// > ThreadViewPopup::threadMessagesFinished @ 0xc8a964
// > ??> @ 0xe83d8
//
// 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:24 +0000
//
__int64 __fastcall ThreadViewPopup::setPollInterval(__int64 this, float a2)
{
__int64 v2; // x19
float v3; // s0
float v4; // s0
v2 = this;
if ( *(_BYTE *)(this + 791) || (this = ThreadViewPopup::removedView((ThreadViewPopup *)this), v3 = a2, (_BYTE)this) )
{
v3 = 0.0;
if ( *(float *)(v2 + 940) == 0.0 )
return this;
}
else if ( *(float *)(v2 + 940) == a2 )
{
return this;
}
*(float *)(v2 + 940) = v3;
this = cocos2d::CCNode::unschedule(v2, ThreadViewPopup::onAutoRefresh, 0);
v4 = *(float *)(v2 + 940);
if ( v4 > 0.0 )
return cocos2d::CCNode::schedule(v2, ThreadViewPopup::onAutoRefresh, 0, v4);
return this;
}