//
// ScrollableContentLayer::unmountRowSlot from 0x140083100 to 0x1400831a8 (168 bytes)
//
// 2 xrefs:
// > ScrollableContentLayer::updateVirtualRows @ 0x140082db5
// > ??> @ 0x140912308
//
// This function is hookable on this platform (idp: pc, 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 11:25:56 +0000
//
void __fastcall ScrollableContentLayer::unmountRowSlot(_QWORD *a1, __int64 a2)
{
_QWORD *v2; // rdi
__int64 **v3; // r8
__int64 **v4; // rbx
__int64 *i; // rax
__int64 v6; // rcx
__int64 **v7; // rax
v2 = a1 + 78;
v3 = (__int64 **)a1[78];
v4 = v3;
for ( i = v3[1]; !*((_BYTE *)i + 25); i = (__int64 *)*i )
{
if ( *((_DWORD *)i + 8) >= (int)a2 )
v4 = (__int64 **)i;
else
i += 2;
}
if ( !*((_BYTE *)v4 + 25) && (int)a2 >= *((_DWORD *)v4 + 8) && v4 != v3 )
{
if ( (__int64 *)a1[70] == v4[6] )
a1[70] = 0;
v6 = a1[72];
if ( v6 )
(*(void (__fastcall **)(__int64, __int64, __int64 *))(*(_QWORD *)v6 + 24LL))(v6, a2, v4[5]);
LOBYTE(a2) = 1;
(*(void (__fastcall **)(__int64 *, __int64))(*v4[5] + 520))(v4[5], a2);
v7 = sub_14006A9D0(v2, v4);
j_j_free(v7);
}
}