//
// ScrollableContentLayer::unmountRowSlot from 0x6e519c to 0x6e52dc (320 bytes)
//
// 5 xrefs:
// > ScrollableContentLayer::unmountAllRows @ 0x6e530c
// > ScrollableContentLayer::remountVirtualRow @ 0x6e53dc
// > ScrollableContentLayer::updateVirtualRows @ 0x6e5590
// > ScrollableContentLayer::updateVirtualRows @ 0x6e55b4
// > ??> @ 0x80098
//
// 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:42 +0000
//
void __fastcall ScrollableContentLayer::unmountRowSlot(ScrollableContentLayer *this, int a2)
{
__int64 *v2; // x2
__int64 *v3; // x19
__int64 *v4; // x21
__int64 v6; // x0
char *v7; // x2
__int64 *v8; // x0
bool v9; // zf
char *v10; // x19
v2 = *((__int64 **)this + 81);
if ( v2 )
{
v3 = (__int64 *)((char *)this + 648);
do
{
while ( *((_DWORD *)v2 + 8) >= a2 )
{
v3 = v2;
v2 = (__int64 *)*v2;
if ( !v2 )
goto LABEL_5;
}
v2 = (__int64 *)v2[1];
}
while ( v2 );
LABEL_5:
v4 = v3;
if ( (__int64 *)((char *)this + 648) != v3 && *((_DWORD *)v3 + 8) <= a2 )
{
if ( *((_QWORD *)this + 72) == v3[6] )
*((_QWORD *)this + 72) = 0;
v6 = *((_QWORD *)this + 74);
if ( v6 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 24LL))(v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3[5] + 528LL))(v3[5], 1);
v7 = (char *)v3[1];
if ( v7 )
{
while ( *(_QWORD *)v7 )
v7 = *(char **)v7;
}
else
{
do
{
v7 = (char *)v3[2];
v9 = v3 == *(__int64 **)v7;
v10 = v7;
if ( v9 )
break;
v7 = *((char **)v7 + 2);
v9 = v10 == *(char **)v7;
v3 = (__int64 *)v7;
}
while ( !v9 );
}
if ( *((__int64 **)this + 80) == v4 )
*((_QWORD *)this + 80) = v7;
v8 = *((__int64 **)this + 81);
--*((_QWORD *)this + 82);
std::__tree_remove *>(v8, v4);
operator delete(v4);
}
}
}