//
// ThreadViewPopup::onScrollToBottom from 0xc66184 to 0xc661e4 (96 bytes)
//
// 3 xrefs:
// > ??> @ 0x4cd20
// > ThreadViewPopup::init @ 0xc875a0
// > ??> @ 0x15418f8
//
// 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::onScrollToBottom(ThreadViewPopup *this, cocos2d::CCObject *a2)
{
float *v3; // x0
float v4; // s0
if ( *((_BYTE *)this + 1168) )
return ThreadViewPopup::jumpToLatest((__int64)this);
v3 = *((float **)this + 103);
if ( v3 )
{
v4 = v3[108] - *((float *)this + 211);
if ( v4 <= 0.0 )
v4 = 0.0;
ScrollableContentLayer::scrollTo((ScrollableContentLayer *)v3, v4);
}
return ThreadViewPopup::setUnseenBelow(this, 0);
}