//
// SFXBrowser::restoreListScroll from 0x6c3988 to 0x6c3a12 (138 bytes)
//
// 2 xrefs:
// > SFXBrowser::switchToView @ 0x6c84c6
// > SFXBrowser::onExitFolder @ 0x6c8966
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:53 +0000
//
int __fastcall SFXBrowser::restoreListScroll(int this, float a2)
{
int v3; // r2
int v4; // r3
CCScrollLayerExt *v5; // r4
float v6; // s16
float v7; // r0
_BYTE v8[8]; // [sp+4h] [bp-10h] BYREF
v3 = *(_DWORD *)(this + 552);
if ( v3 )
{
v4 = *(_DWORD *)(v3 + 440);
if ( v4 )
{
v5 = *(CCScrollLayerExt **)(v4 + 324);
v6 = *(float *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)v5 + 91) + 164))(*((_DWORD *)v5 + 91)) + 4);
this = (*(int (__fastcall **)(CCScrollLayerExt *))(*(_DWORD *)v5 + 164))(v5);
if ( v6 > *(float *)(this + 4) )
{
v7 = (*(float (__fastcall **)(_DWORD))(**((_DWORD **)v5 + 91) + 112))(*((_DWORD *)v5 + 91));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v7, a2);
CCScrollLayerExt::setContentOffset(v5, COERCE_FLOAT(v8), nullptr);
return CCScrollLayerExt::doConstraintContent(v5, 1);
}
}
}
return this;
}