//
// ScrollableContentLayer::reloadVirtualRows from 0x3f6992 to 0x3f6a7c (234 bytes)
//
// 8 xrefs:
// > ScrollableContentLayer::setVirtualRows @ 0x3f6adc
// > FriendsProfilePage::rebuildList @ 0x5f389e
// > FriendPickerPopup::buildRows @ 0x758962
// > FriendPickerPopup::buildRows @ 0x7589a4
// > ThreadViewPopup::buildRows @ 0x75bca2
// > ThreadViewPopup::buildRows @ 0x75bd2c
// > IDNameBrowserPopup::rebuildList @ 0x7920e0
// > IDNameBrowserPopup::rebuildList @ 0x792338
//
// 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:47:17 +0000
//
void __fastcall ScrollableContentLayer::reloadVirtualRows(ScrollableContentLayer *this, float a2, int a3)
{
int v5; // r0
int v6; // r2
unsigned int v7; // r3
int v8; // r6
int v9; // r1
int v10; // r2
int v11; // r3
float v12; // s16
int i; // r5
int v14; // r1
float v15; // s16
float v16; // s15
int v17; // r1
int v18; // r2
int v19; // r3
if ( *((_DWORD *)this + 112) )
{
ScrollableContentLayer::unmountAllRows(this, SLODWORD(a2), a3);
v5 = (***((int (__fastcall ****)(_DWORD))this + 112))(*((_DWORD *)this + 112));
v6 = *((_DWORD *)this + 116);
v7 = (*((_DWORD *)this + 117) - v6) >> 2;
v8 = v5 & ~(v5 >> 31);
v9 = v8 + 1;
if ( v7 >= v8 + 1 )
{
if ( v7 > v8 + 1 )
{
v10 = v6 + 4 * v9;
while ( 1 )
{
v11 = *((_DWORD *)this + 117);
if ( v10 == v11 )
break;
*((_DWORD *)this + 117) = v11 - 4;
}
}
}
else
{
std::vector::__append((int)this + 464, v9 - v7);
}
v12 = *((float *)this + 114);
for ( i = 0; ; ++i )
{
*(float *)(4 * i + *((_DWORD *)this + 116)) = v12;
if ( i == v8 )
break;
v14 = i;
v12 = v12 + (*(float (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 112) + 4))(*((_DWORD *)this + 112), v14);
}
v15 = v12 + *((float *)this + 115);
v16 = *((float *)this + 81);
if ( !*((_BYTE *)this + 444) )
v16 = *((float *)this + 82);
if ( v15 < v16 )
v15 = v16;
if ( a2 >= 0.0 )
{
*((float *)this + 84) = a2;
*((_DWORD *)this + 93) = 0;
}
*((float *)this + 83) = v15;
ScrollableContentLayer::clampOffset((int)this);
ScrollableContentLayer::ensureScrollThumb((int)this);
ScrollableContentLayer::applyContentPosition(this, v17, v18, v19);
}
}