//
// sub_1004F9AE0 from 0x1004f9ae0 to 0x1004f9b64 (132 bytes)
//
// 1 xrefs:
// > ThreadViewPopup::init @ 0x1004f8b54
//
// 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 11:06:49 +0000
//
unsigned int *__fastcall sub_1004F9AE0(__int64 a1)
{
__int64 v3; // x0
float v4; // s0
float v5; // s1
float v6; // s2
bool v7; // cc
float v8; // s0
__int64 v9; // x0
if ( *(_BYTE *)(a1 + 1168) == 1 )
return (unsigned int *)sub_1004FAE64(a1);
v3 = *(_QWORD *)(a1 + 824);
if ( v3 )
{
v4 = *(float *)(v3 + 432);
v5 = *(float *)(a1 + 844);
v6 = v4 - v5;
v7 = v4 <= v5;
v8 = 0.0;
if ( !v7 )
v8 = v6;
ScrollableContentLayer::scrollTo(v3, v8);
}
v9 = *(_QWORD *)(a1 + 1024);
if ( v9 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 344LL))(v9, 0);
return cocos2d::CCNode::unschedule((unsigned int *)a1, (unsigned __int64)sub_1004FE8CC, 0);
}