//
// TableView::reloadData from 0x140087ce0 to 0x140088209 (1321 bytes)
//
// 6 xrefs:
// > BoomListView::setupList @ 0x14003fc43
// > BoomListView::setupList @ 0x14003fc65
// > CustomListView::setupList @ 0x1401463d3
// > CustomListView::setupList @ 0x1401469ac
// > CustomListView::setupList @ 0x1401469ca
// > ??> @ 0x1409125d8
//
// 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:57 +0000
//
// Hidden C++ exception states: #wind=1
int __fastcall TableView::reloadData(__int64 a1)
{
_UNKNOWN **v1; // rax
__int64 v3; // rcx
struct cocos2d::CCObject *v4; // r13
unsigned int v5; // edi
signed int v6; // ebp
signed int j; // r12d
struct cocos2d::CCObject *v8; // rax
struct cocos2d::CCObject *v9; // rbx
__int64 v10; // rcx
cocos2d::CCObject *v11; // r15
double v12; // xmm0_8
float v13; // xmm8_4
float v14; // xmm7_4
float v15; // xmm6_4
float *v16; // rax
__int64 v17; // rax
struct cocos2d::CCObject *v18; // r14
const struct cocos2d::CCSize *v19; // rax
__int64 v20; // rdi
__int64 v21; // rbx
__int64 v22; // rax
signed int k; // ebp
struct cocos2d::CCObject *v24; // rdi
float *v25; // rax
__int64 v26; // rax
float v27; // xmm6_4
float *v28; // rax
__int64 v29; // rax
_BYTE *v30; // rcx
__int64 v31; // rbx
float v32; // xmm6_4
float *v33; // rax
struct cocos2d::CCObject *v34; // rax
struct cocos2d::CCObject *v35; // rdi
__int64 v36; // rbx
__int64 v37; // rax
__int64 v38; // rbx
float *v39; // rax
__int64 v40; // rax
__int64 v41; // rbx
__int64 v42; // rax
__int64 v43; // rcx
__int64 v44; // rcx
_BYTE v46[4]; // [rsp+20h] [rbp-F8h] BYREF
float v47; // [rsp+24h] [rbp-F4h]
_BYTE v48[4]; // [rsp+28h] [rbp-F0h] BYREF
float v49; // [rsp+2Ch] [rbp-ECh]
float v50[2]; // [rsp+30h] [rbp-E8h] BYREF
cocos2d::CCObject *v51; // [rsp+38h] [rbp-E0h]
char v52[8]; // [rsp+40h] [rbp-D8h] BYREF
char v53[8]; // [rsp+48h] [rbp-D0h] BYREF
char v54[8]; // [rsp+50h] [rbp-C8h] BYREF
char v55[8]; // [rsp+58h] [rbp-C0h] BYREF
char v56[8]; // [rsp+60h] [rbp-B8h] BYREF
char v57[8]; // [rsp+68h] [rbp-B0h] BYREF
char v58[8]; // [rsp+70h] [rbp-A8h] BYREF
char v59[96]; // [rsp+78h] [rbp-A0h] BYREF
_UNKNOWN *retaddr; // [rsp+118h] [rbp+0h] BYREF
unsigned int i; // [rsp+120h] [rbp+8h]
signed int v62; // [rsp+128h] [rbp+10h]
int v63; // [rsp+130h] [rbp+18h]
int v64; // [rsp+138h] [rbp+20h]
v1 = &retaddr;
if ( *(_QWORD *)(a1 + 608) )
{
v3 = *(_QWORD *)(a1 + 616);
if ( v3 )
{
v4 = nullptr;
LODWORD(v1) = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 8LL))(v3, a1);
v64 = (int)v1;
v5 = 0;
for ( i = 0; (int)v5 < v64; i = v5 )
{
v6 = (***(__int64 (__fastcall ****)(_QWORD, _QWORD, __int64))(a1 + 616))(*(_QWORD *)(a1 + 616), v5, a1);
v62 = v6;
LODWORD(v1) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 584));
v63 = (int)v1;
for ( j = 0; j < v6; LODWORD(v1) = v63 )
{
if ( j < (int)v1
&& (v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 584), j), (v9 = v8) != nullptr) )
{
v10 = *(_QWORD *)(a1 + 608);
if ( v10 )
(*(void (__fastcall **)(__int64, __int64, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v10 + 32LL))(
v10,
(__int64)v8 + 424,
v8,
a1);
v4 = v9;
if ( !j )
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 200LL))(v9);
}
else
{
v11 = (cocos2d::CCObject *)operator new(0x40u);
v51 = v11;
cocos2d::CCObject::CCObject(v11);
*(_QWORD *)v11 = &CCIndexPath::`vftable';
*((_DWORD *)v11 + 14) = j;
*((_DWORD *)v11 + 15) = v5;
cocos2d::CCObject::autorelease(v11);
v12 = (*(double (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 608) + 40LL))(
*(_QWORD *)(a1 + 608),
v11,
a1);
v13 = *(float *)&v12;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46);
if ( v4 )
{
v15 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v4 + 200LL))(v4) + 4)
- v13;
v16 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v4 + 200LL))(v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, *v16, v15);
cocos2d::CCPoint::operator=(v46, v17);
v14 = v47;
}
else
{
v14 = (float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 320LL))(*(_QWORD *)(a1 + 480))
+ 4)
- (float)((float)j * v13))
- v13;
v47 = v14;
}
v18 = nullptr;
if ( v14 < 0.0 && !TableView::isDuplicateIndexPath(a1, (__int64)v11) )
{
v19 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 320LL))(*(_QWORD *)(a1 + 480));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v50, v19);
v20 = **(_QWORD **)(a1 + 480);
v21 = *(_QWORD *)(a1 + 480);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v53, v50[0], v50[1] - v14);
(*(void (__fastcall **)(__int64, __int64))(v20 + 312))(v21, v22);
for ( k = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 584)) - 1; k >= 0; --k )
{
v24 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 584), k);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48);
if ( k == cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 584)) - 1 )
{
v25 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v24 + 200LL))(v24);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, *v25, (float)(0.0 - v14) + 1.0);
cocos2d::CCPoint::operator=(v48, v26);
v27 = v49 - v13;
v28 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v24 + 200LL))(v24);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v55, *v28, v27);
v30 = v46;
}
else
{
v31 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v18 + 320LL))(v18);
v32 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v18 + 200LL))(v18)
+ 4)
+ *(float *)(v31 + 4);
v33 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v24 + 200LL))(v24);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, *v33, v32);
v30 = v48;
}
cocos2d::CCPoint::operator=(v30, v29);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v24 + 184LL))(v24, v48);
v18 = v24;
}
v6 = v62;
}
v34 = (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 616) + 24LL))(
*(_QWORD *)(a1 + 616),
v11,
a1);
v35 = v34;
if ( v34 )
{
v36 = *(_QWORD *)v34;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, 0.0, 1.0);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v36 + 288))(v35, v37);
v38 = *(_QWORD *)v35;
v39 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v58, *v39, v13);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v38 + 312))(v35, v40);
v41 = *(_QWORD *)v35;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, 0.0, v47);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v41 + 184))(v35, v42);
cocos2d::CCObject::operator=((char *)v35 + 424, v11);
*((_DWORD *)v35 + 120) = *((_DWORD *)v11 + 14);
*((_DWORD *)v35 + 121) = *((_DWORD *)v11 + 15);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 584), v35);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 600), v11);
v43 = *(_QWORD *)(a1 + 608);
if ( v43 )
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v43 + 16LL))(
v43,
v11,
v35,
a1);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 480) + 464LL))(
*(_QWORD *)(a1 + 480),
v35);
v44 = *(_QWORD *)(a1 + 608);
if ( v44 )
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v44 + 24LL))(
v44,
v11,
v35,
a1);
v4 = v35;
}
v5 = i;
}
++j;
}
++v5;
}
}
}
return (int)v1;
}