//
// TableView::initTableViewCells from 0x6960d8 to 0x69645c (900 bytes)
//
// 1 xrefs:
// > ??> @ 0xd5bf8
//
// 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:37 +0000
//
__int64 __fastcall TableView::initTableViewCells(TableView *this)
{
__int64 v2; // x0
unsigned int v3; // w26
cocos2d::CCObject *v4; // x23
int v5; // w27
int v6; // w24
cocos2d::CCObject *v7; // x19
float v8; // s8
__int64 v9; // x0
float v10; // s0
__int64 v11; // x0
cocos2d::CCObject *v12; // x21
void (__fastcall *v13)(cocos2d::CCObject *, _BYTE *); // x23
void (__fastcall *v14)(cocos2d::CCObject *, _BYTE *); // x23
float *v15; // x0
void (__fastcall *v16)(cocos2d::CCObject *, _BYTE *); // x23
__int64 v17; // x0
__int64 v18; // x0
int v20; // [xsp+7Ch] [xbp+7Ch]
float v21; // [xsp+80h] [xbp+80h]
_BYTE v22[4]; // [xsp+98h] [xbp+98h] BYREF
float v23; // [xsp+9Ch] [xbp+9Ch]
_BYTE v24[8]; // [xsp+A0h] [xbp+A0h] BYREF
if ( *((_QWORD *)this + 77) )
{
v2 = *((_QWORD *)this + 78);
if ( v2 )
{
v20 = (*(__int64 (__fastcall **)(__int64, TableView *))(*(_QWORD *)v2 + 8LL))(v2, this);
if ( v20 > 0 )
{
v3 = 0;
v4 = nullptr;
while ( 1 )
{
v5 = (***((__int64 (__fastcall ****)(_QWORD, _QWORD, TableView *))this + 78))(
*((_QWORD *)this + 78),
v3,
this);
if ( v5 > 0 )
break;
LABEL_17:
if ( v20 == ++v3 )
return _stack_chk_guard;
}
v6 = 0;
while ( 1 )
{
while ( 1 )
{
v7 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject(v7);
*((_DWORD *)v7 + 14) = v6;
*((_DWORD *)v7 + 15) = v3;
*(_QWORD *)v7 = &off_1418970;
cocos2d::CCObject::autorelease(v7);
v8 = (*(float (__fastcall **)(_QWORD, cocos2d::CCObject *, TableView *))(**((_QWORD **)this + 77) + 40LL))(
*((_QWORD *)this + 77),
v7,
this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22);
if ( v4 )
{
v21 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v4 + 192LL))(v4);
v9 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v4 + 192LL))(v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, v21, *(float *)(v9 + 4) - v8);
cocos2d::CCPoint::operator=(v22, v24);
v10 = v23;
}
else
{
v10 = (float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 61) + 328LL))(*((_QWORD *)this + 61))
+ 4)
- (float)(v8 * (float)v6))
- v8;
v23 = v10;
}
if ( v10 < 0.0 )
return _stack_chk_guard;
v11 = (*(__int64 (__fastcall **)(_QWORD, cocos2d::CCObject *, TableView *))(**((_QWORD **)this + 78) + 24LL))(
*((_QWORD *)this + 78),
v7,
this);
v12 = (cocos2d::CCObject *)v11;
if ( v11 )
break;
LABEL_8:
if ( v5 == ++v6 )
goto LABEL_17;
}
v13 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v11 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 0.0, 1.0);
v13(v12, v24);
v14 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v12 + 320LL);
v15 = (float *)(*(__int64 (__fastcall **)(TableView *))(*(_QWORD *)this + 328LL))(this);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v24, *v15 * 0.5, v8);
v14(v12, v24);
v16 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v12 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 0.0, v23);
v16(v12, v24);
*((_DWORD *)v12 + 108) = *((_DWORD *)v7 + 2);
*((_DWORD *)v12 + 109) = *((_DWORD *)v7 + 3);
*((_DWORD *)v12 + 110) = *((_DWORD *)v7 + 4);
*((_DWORD *)v12 + 111) = *((_DWORD *)v7 + 5);
*((_DWORD *)v12 + 112) = *((_DWORD *)v7 + 6);
*((_DWORD *)v12 + 113) = *((_DWORD *)v7 + 7);
*((_DWORD *)v12 + 114) = *((_DWORD *)v7 + 8);
*((_DWORD *)v12 + 115) = *((_DWORD *)v7 + 9);
*((_DWORD *)v12 + 116) = *((_DWORD *)v7 + 10);
*((_DWORD *)v12 + 117) = *((_DWORD *)v7 + 11);
*((_DWORD *)v12 + 118) = *((_DWORD *)v7 + 12);
*((_DWORD *)v12 + 119) = *((_DWORD *)v7 + 13);
*((_DWORD *)v12 + 120) = *((_DWORD *)v7 + 14);
*((_DWORD *)v12 + 121) = *((_DWORD *)v7 + 15);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 74), v12);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 76), v7);
v17 = *((_QWORD *)this + 77);
if ( v17 )
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, cocos2d::CCObject *, TableView *))(*(_QWORD *)v17 + 16LL))(
v17,
v7,
v12,
this);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 61) + 456LL))(
*((_QWORD *)this + 61),
v12);
v18 = *((_QWORD *)this + 77);
if ( v18 )
{
v4 = v12;
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, cocos2d::CCObject *, TableView *))(*(_QWORD *)v18 + 24LL))(
v18,
v7,
v12,
this);
goto LABEL_8;
}
++v6;
v4 = v12;
if ( v5 == v6 )
goto LABEL_17;
}
}
}
}
return _stack_chk_guard;
}