//
// SFXBrowser::restoreListScroll from 0x14061b7d0 to 0x14061b89a (202 bytes)
//
// 6 xrefs:
// > SFXBrowser::switchToView @ 0x14061b7a1
// > SFXBrowser::onExitFolder @ 0x1406207f6
// > ??> @ 0x1408e5d80
// > ??> @ 0x1408e5d94
// > ??> @ 0x1408e5da4
// > ??> @ 0x140930230
//
// This function is hookable on this platform (idp: pc, 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:35:20 +0000
//
void __fastcall SFXBrowser::restoreListScroll(__int64 a1, float a2)
{
__int64 v2; // rax
__int64 v3; // rcx
_QWORD **v4; // rdi
__int64 v5; // rbx
double v6; // xmm0_8
__int64 v7; // rax
char v8; // [rsp+40h] [rbp+8h] BYREF
v2 = *(_QWORD *)(a1 + 728);
if ( v2 )
{
v3 = *(_QWORD *)(v2 + 544);
if ( v3 )
{
v4 = *(_QWORD ***)(v3 + 424);
v5 = (*(__int64 (__fastcall **)(_QWORD *))(*v4[60] + 320LL))(v4[60]);
if ( *(float *)(v5 + 4) > *(float *)(((__int64 (__fastcall *)(_QWORD **))(*v4)[40])(v4) + 4) )
{
v6 = (*(double (__fastcall **)(_QWORD *))(*v4[60] + 216LL))(v4[60]);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, *(float *)&v6, a2);
(*(void (__fastcall **)(_QWORD *, __int64))(*v4[60] + 184LL))(v4[60], v7);
CCScrollLayerExt::doConstraintContent((__int64)v4, 0);
CCScrollLayerExt::doConstraintContent((__int64)v4, 1);
}
}
}
}