//
// BoomListView::restoreListOffset from 0x68864c to 0x688740 (244 bytes)
//
// 4 xrefs:
// > CustomListView::setupList @ 0x736a8c
// > CustomListView::setupList @ 0x736c84
// > CustomListView::setupList @ 0x736d70
// > ??> @ 0x959e0
//
// 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 12:50:31 +0000
//
__int64 __fastcall BoomListView::restoreListOffset(CCScrollLayerExt **this, float a2)
{
float v3; // s8
__int64 result; // x0
float v5; // s0
float v6; // s0
__int64 v7; // x21
float *v8; // x0
float v9; // s0
float v10; // s0
_BYTE v11[8]; // [xsp+40h] [xbp+40h] BYREF
v3 = a2;
result = 0;
if ( a2 != 0.0 && !*((_BYTE *)this + 460) )
{
CCScrollLayerExt::getMaxY(*(this + 53));
if ( v3 > v5 )
{
CCScrollLayerExt::getMaxY(*(this + 53));
v3 = v10;
}
CCScrollLayerExt::getMinY(*(this + 53));
if ( v3 < v6 )
{
CCScrollLayerExt::getMinY(*(this + 53));
v3 = v9;
}
v7 = (__int64)*(this + 53);
v8 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v7 + 488) + 192LL))(*(_QWORD *)(v7 + 488));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, *v8, v3);
CCScrollLayerExt::setContentOffset(v7, v11, 0);
return 1;
}
return result;
}