//
// BoomListView::restoreListOffset from 0x3c0aa0 to 0x3c0b50 (176 bytes)
//
// 3 xrefs:
// > CustomListView::setupList @ 0x424cce
// > CustomListView::setupList @ 0x424cde
// > CustomListView::setupList @ 0x424da2
//
// 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:46:30 +0000
//
int __fastcall BoomListView::restoreListOffset(BoomListView *this, float a2)
{
float v3; // s16
int v4; // r6
float *v5; // r0
_BYTE v7[8]; // [sp+4h] [bp-Ch] BYREF
v3 = a2;
if ( a2 == 0.0 || *((_BYTE *)this + 352) )
return 0;
if ( a2 > COERCE_FLOAT(CCScrollLayerExt::getMaxY(*((CCScrollLayerExt **)this + 81))) )
v3 = COERCE_FLOAT(CCScrollLayerExt::getMaxY(*((CCScrollLayerExt **)this + 81)));
if ( v3 < COERCE_FLOAT(CCScrollLayerExt::getMinY(*((CCScrollLayerExt **)this + 81))) )
v3 = COERCE_FLOAT(CCScrollLayerExt::getMinY(*((CCScrollLayerExt **)this + 81)));
v4 = *((_DWORD *)this + 81);
v5 = (float *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v4 + 364) + 96))(*(_DWORD *)(v4 + 364));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, *v5, v3);
CCScrollLayerExt::setContentOffset(v4, v7, 0);
return 1;
}