//
// ThreadViewPopup::unmountVirtualRow from 0xc62fa8 to 0xc630d4 (300 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ThreadViewPopup::unmountVirtualRow @ 0xc630d8
// > ??> @ 0x55090
// > ??> @ 0x14ecae8
//
// 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 13:05:23 +0000
//
__int64 __fastcall ThreadViewPopup::unmountVirtualRow(__int64 this, int a2, cocos2d::CCNode *a3)
{
__int64 v3; // x20
int v4; // w22
__int64 v5; // x23
__int64 v7; // x21
unsigned __int64 v8; // x22
__int64 v9; // x20
__int64 v10; // x25
__int64 v11; // x19
__int64 v12; // x0
char v13; // w2
__int64 v14; // x1
unsigned __int64 v15; // x20
v3 = *(_QWORD *)(this + 1072);
v4 = -1227133513 * ((*(_QWORD *)(this + 1080) - v3) >> 2) - 1;
if ( v4 >= 0 )
{
v5 = this;
v7 = 28LL * v4;
v8 = 28 * (v4 - (unsigned __int64)(unsigned int)v4) - 28;
while ( 1 )
{
v9 = v3 + v7;
this = *(unsigned int *)(v9 + 24);
if ( (_DWORD)this != a2 )
goto LABEL_3;
v10 = *(_QWORD *)(v5 + 1080);
v11 = v9 + 28;
if ( v9 + 28 != v10 )
{
do
{
v12 = v11 - 20;
v13 = *(_BYTE *)(v11 + 4);
v14 = v11 + 8;
*(_DWORD *)(v11 - 28) = *(_DWORD *)v11;
v9 = v11;
*(_BYTE *)(v11 - 24) = v13;
v11 += 28;
cocos2d::CCRect::operator=(v12, v14);
this = *(unsigned int *)(v11 - 4);
*(_DWORD *)(v11 - 32) = this;
}
while ( v10 != v11 );
v10 = *(_QWORD *)(v5 + 1080);
}
if ( v9 == v10 )
{
LABEL_3:
v7 -= 28;
if ( v7 == v8 )
return this;
}
else
{
v15 = (unsigned __int64)(v10 - 28 - v9) >> 2;
v7 -= 28;
this = -7LL * (((0x2DB6DB6DB6DB6DB7LL * v15) & 0x3FFFFFFFFFFFFFFFLL) + 1);
*(_QWORD *)(v5 + 1080) = v10 - 28 * (((0x2DB6DB6DB6DB6DB7LL * v15) & 0x3FFFFFFFFFFFFFFFLL) + 1);
if ( v7 == v8 )
return this;
}
v3 = *(_QWORD *)(v5 + 1072);
}
}
return this;
}