//
// ScrollableContentLayer::setVirtualRows from 0x6e6390 to 0x6e6434 (164 bytes)
//
// 7 xrefs:
// > FriendsProfilePage::init @ 0xa50fcc
// > FriendPickerPopup::init @ 0xc69520
// > ThreadViewPopup::init @ 0xc8726c
// > DeathTrackerPopup::buildHistory @ 0xcae3e0
// > DeathTrackerPopup::buildList @ 0xcb0450
// > IDNameBrowserPopup::init @ 0xce2e48
// > ??> @ 0xc1ea0
//
// 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:51:43 +0000
//
ScrollableContentLayer *__fastcall ScrollableContentLayer::setVirtualRows(
__int64 a1,
__int64 a2,
float a3,
float a4,
float a5)
{
ScrollableContentLayer *result; // x0
float v7; // s0
__int64 v8; // x3
__int64 v9; // x2
ScrollableContentLayer::ensureOwnedContentNode((ScrollableContentLayer *)a1);
result = (ScrollableContentLayer *)ScrollableContentLayer::unmountAllRows((ScrollableContentLayer *)a1);
v7 = a3;
*(_QWORD *)(a1 + 592) = a2;
if ( a3 < 0.0 )
v7 = 0.0;
v8 = *(_QWORD *)(a1 + 616);
v9 = *(_QWORD *)(a1 + 624);
*(float *)(a1 + 600) = v7;
*(float *)(a1 + 604) = a4;
*(float *)(a1 + 608) = a5;
if ( v8 != v9 )
{
result = (ScrollableContentLayer *)(v9 + 4 * ~((unsigned __int64)(v9 - 4 - v8) >> 2));
*(_QWORD *)(a1 + 624) = result;
}
if ( a2 )
return ScrollableContentLayer::reloadVirtualRows((ScrollableContentLayer *)a1, -1.0);
return result;
}