//
// TableView::reloadData from 0x696994 to 0x696f34 (1440 bytes)
//
// 5 xrefs:
// > BoomListView::setupList @ 0x688270
// > BoomListView::setupList @ 0x6882a8
// > CustomListView::setupList @ 0x7369f4
// > MPLobbyLayer::updateComments @ 0xb055c4
// > ??> @ 0x81d90
//
// 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:50:38 +0000
//
__int64 __fastcall TableView::reloadData(TableView *this)
{
__int64 v2; // x0
__int64 v3; // x26
signed int v4; // w24
__int64 v5; // x20
__int64 v6; // x0
cocos2d::CCObject *v8; // x20
float v9; // s11
__int64 v10; // x0
float v11; // s9
__int64 v12; // x0
cocos2d::CCObject *v13; // x21
void (__fastcall *v14)(cocos2d::CCObject *, _BYTE *); // x23
void (__fastcall *v15)(cocos2d::CCObject *, _BYTE *); // x23
float *v16; // x0
void (__fastcall *v17)(cocos2d::CCObject *, _BYTE *); // x23
__int64 v18; // x0
__int64 v19; // x0
__int64 v20; // x23
const cocos2d::CCSize *v21; // x0
__int64 v22; // x21
signed int v23; // w21
float v24; // s8
__int64 v25; // x0
__n128 v26; // q0
__int64 v27; // x28
bool v28; // zf
__int64 (*v29)(void); // x1
float *v30; // x0
long double v31; // q0
float *v32; // x0
int v33; // [xsp+A0h] [xbp+A0h]
unsigned int v34; // [xsp+A4h] [xbp+A4h]
signed int v35; // [xsp+A8h] [xbp+A8h]
int v36; // [xsp+ACh] [xbp+ACh]
float v37; // [xsp+B0h] [xbp+B0h]
void (__fastcall *v38)(__int64, _BYTE *); // [xsp+B0h] [xbp+B0h]
float v39; // [xsp+B0h] [xbp+B0h]
_BYTE v40[4]; // [xsp+C8h] [xbp+C8h] BYREF
float v41; // [xsp+CCh] [xbp+CCh]
float v42[2]; // [xsp+D0h] [xbp+D0h] BYREF
_BYTE v43[4]; // [xsp+D8h] [xbp+D8h] BYREF
float v44; // [xsp+DCh] [xbp+DCh]
_BYTE v45[8]; // [xsp+E0h] [xbp+E0h] BYREF
if ( *((_QWORD *)this + 77) )
{
v2 = *((_QWORD *)this + 78);
if ( v2 )
{
v33 = (*(__int64 (__fastcall **)(__int64, TableView *))(*(_QWORD *)v2 + 8LL))(v2, this);
if ( v33 > 0 )
{
v34 = 0;
v3 = 0;
while ( 1 )
{
v36 = (***((__int64 (__fastcall ****)(_QWORD, _QWORD, TableView *))this + 78))(
*((_QWORD *)this + 78),
v34,
this);
v35 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 74));
if ( v36 > 0 )
break;
LABEL_15:
if ( v33 == ++v34 )
return _stack_chk_guard;
}
v4 = 0;
while ( v35 > v4 )
{
v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 74), v4);
if ( !v5 )
break;
v6 = *((_QWORD *)this + 77);
if ( v6 )
(*(void (__fastcall **)(__int64, __int64, __int64, TableView *))(*(_QWORD *)v6 + 32LL))(
v6,
v5 + 424,
v5,
this);
if ( !v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5);
v3 = v5;
LABEL_14:
if ( v36 == ++v4 )
goto LABEL_15;
}
v8 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject(v8);
*((_DWORD *)v8 + 15) = v34;
*((_DWORD *)v8 + 14) = v4;
*(_QWORD *)v8 = &off_1418970;
cocos2d::CCObject::autorelease(v8);
v9 = (*(float (__fastcall **)(_QWORD, cocos2d::CCObject *, TableView *))(**((_QWORD **)this + 77) + 40LL))(
*((_QWORD *)this + 77),
v8,
this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40);
if ( v3 )
{
v37 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3);
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v37, *(float *)(v10 + 4) - v9);
cocos2d::CCPoint::operator=(v40, v45);
v11 = v41;
if ( v41 >= 0.0 )
goto LABEL_19;
}
else
{
v11 = (float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 61) + 328LL))(*((_QWORD *)this + 61))
+ 4)
- (float)(v9 * (float)v4))
- v9;
v41 = v11;
if ( v11 >= 0.0 )
{
LABEL_19:
v12 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::CCObject *, TableView *))(**((_QWORD **)this + 78) + 24LL))(
*((_QWORD *)this + 78),
v8,
this);
v13 = (cocos2d::CCObject *)v12;
if ( v12 )
{
v14 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v12 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, 0.0, 1.0);
v14(v13, v45);
v15 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v13 + 320LL);
v16 = (float *)(*(__int64 (__fastcall **)(TableView *))(*(_QWORD *)this + 328LL))(this);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v45, *v16, v9);
v15(v13, v45);
v17 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v13 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, 0.0, v41);
v17(v13, v45);
*((_DWORD *)v13 + 108) = *((_DWORD *)v8 + 2);
*((_DWORD *)v13 + 109) = *((_DWORD *)v8 + 3);
*((_DWORD *)v13 + 110) = *((_DWORD *)v8 + 4);
*((_DWORD *)v13 + 111) = *((_DWORD *)v8 + 5);
*((_DWORD *)v13 + 112) = *((_DWORD *)v8 + 6);
*((_DWORD *)v13 + 113) = *((_DWORD *)v8 + 7);
*((_DWORD *)v13 + 114) = *((_DWORD *)v8 + 8);
*((_DWORD *)v13 + 115) = *((_DWORD *)v8 + 9);
*((_DWORD *)v13 + 116) = *((_DWORD *)v8 + 10);
*((_DWORD *)v13 + 117) = *((_DWORD *)v8 + 11);
*((_DWORD *)v13 + 118) = *((_DWORD *)v8 + 12);
*((_DWORD *)v13 + 119) = *((_DWORD *)v8 + 13);
*((_DWORD *)v13 + 120) = *((_DWORD *)v8 + 14);
*((_DWORD *)v13 + 121) = *((_DWORD *)v8 + 15);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 74), v13);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 76), v8);
v18 = *((_QWORD *)this + 77);
if ( v18 )
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, cocos2d::CCObject *, TableView *))(*(_QWORD *)v18 + 16LL))(
v18,
v8,
v13,
this);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 61) + 456LL))(
*((_QWORD *)this + 61),
v13);
v19 = *((_QWORD *)this + 77);
v3 = (__int64)v13;
if ( v19 )
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, cocos2d::CCObject *, TableView *))(*(_QWORD *)v19 + 24LL))(
v19,
v8,
v13,
this);
}
goto LABEL_14;
}
}
if ( !(unsigned __int8)TableView::isDuplicateIndexPath((__int64)this, (__int64)v8) )
{
v20 = 0;
v21 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 61) + 328LL))(*((_QWORD *)this + 61));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v42, v21);
v22 = *((_QWORD *)this + 61);
v38 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v22 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v45, v42[0], v42[1] - v11);
v38(v22, v45);
v23 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 74)) - 1;
if ( v23 >= 0 )
{
do
{
v27 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 74), v23);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43);
v28 = v23 == (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 74)) - 1;
v29 = *(__int64 (**)(void))(*(_QWORD *)v27 + 192LL);
if ( v28 )
{
v30 = (float *)((__int64 (__fastcall *)(__int64))v29)(v27);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, *v30, (float)(0.0 - v11) + 1.0);
*(__n128 *)&v31 = cocos2d::CCPoint::operator=(v43, v45);
v32 = (float *)(*(__int64 (__fastcall **)(__int64, long double))(*(_QWORD *)v27 + 192LL))(v27, v31);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, *v32, v44 - v9);
v26 = cocos2d::CCPoint::operator=(v40, v45);
}
else
{
v39 = *(float *)v29();
v24 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 192LL))(v20) + 4);
v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v20 + 328LL))(v20);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v39, v24 + *(float *)(v25 + 4));
v26 = cocos2d::CCPoint::operator=(v43, v45);
}
--v23;
v20 = v27;
(*(void (__fastcall **)(__int64, _BYTE *, long double))(*(_QWORD *)v27 + 184LL))(
v27,
v43,
*(long double *)&v26);
}
while ( v23 != -1 );
}
}
goto LABEL_19;
}
}
}
return _stack_chk_guard;
}