//
// TableView::initTableViewCells from 0x3c9558 to 0x3c972e (470 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:46:36 +0000
//
int __fastcall TableView::initTableViewCells(int this)
{
int v1; // r4
CCIndexPath *v2; // r8
cocos2d::CCObject *v3; // r7
int v4; // r10
int v5; // r2
cocos2d::CCObject *v6; // r9
float v7; // s16
float v8; // r5
int v9; // r0
cocos2d::CCObject *v10; // r5
void (__fastcall *v11)(cocos2d::CCObject *, _BYTE *); // r7
void (__fastcall *v12)(cocos2d::CCObject *, _BYTE *); // r7
float *v13; // r0
void (__fastcall *v14)(cocos2d::CCObject *, _BYTE *); // r7
int v15; // r0
int v16; // [sp+4h] [bp-28h]
int v17; // [sp+8h] [bp-24h]
_BYTE v18[4]; // [sp+14h] [bp-18h] BYREF
float v19; // [sp+18h] [bp-14h]
_BYTE v20[8]; // [sp+1Ch] [bp-10h] BYREF
v1 = this;
if ( *(_DWORD *)(this + 456) )
{
this = *(_DWORD *)(this + 460);
if ( this )
{
v2 = nullptr;
v3 = nullptr;
this = (*(int (__fastcall **)(int, int))(*(_DWORD *)this + 4))(this, v1);
v16 = this;
while ( (int)v2 < v16 )
{
v4 = 0;
this = (***(int (__fastcall ****)(_DWORD, CCIndexPath *, int))(v1 + 460))(*(_DWORD *)(v1 + 460), v2, v1);
v17 = this;
while ( v4 < v17 )
{
v6 = CCIndexPath::CCIndexPathWithSectionRow(v2, v4, v5);
v7 = COERCE_FLOAT(
(*(int (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**(_DWORD **)(v1 + 456) + 20))(
*(_DWORD *)(v1 + 456),
v6,
v1));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18);
if ( v3 )
{
v8 = *(float *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v3 + 96))(v3);
v9 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v3 + 96))(v3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v8, *(float *)(v9 + 4) - v7);
this = cocos2d::CCPoint::operator=(v18, v20);
}
else
{
this = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v1 + 364) + 164))(*(_DWORD *)(v1 + 364));
v19 = (float)(*(float *)(this + 4) - (float)((float)v4 * v7)) - v7;
}
if ( v19 < 0.0 )
return this;
this = (*(int (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**(_DWORD **)(v1 + 460) + 12))(
*(_DWORD *)(v1 + 460),
v6,
v1);
v10 = (cocos2d::CCObject *)this;
if ( this )
{
v11 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)this + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 0.0, 1.0);
v11(v10, v20);
v12 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v10 + 160);
v13 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v1 + 164))(v1);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v20, *v13 * 0.5, v7);
v12(v10, v20);
v14 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v10 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 0.0, v19);
v14(v10, v20);
CCIndexPath::operator=((_DWORD *)v10 + 81, v6);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v1 + 444), v10);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v1 + 452), v6);
v15 = *(_DWORD *)(v1 + 456);
if ( v15 )
(*(void (__fastcall **)(int, cocos2d::CCObject *, cocos2d::CCObject *, int))(*(_DWORD *)v15 + 8))(
v15,
v6,
v10,
v1);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**(_DWORD **)(v1 + 364) + 228))(
*(_DWORD *)(v1 + 364),
v10);
this = *(_DWORD *)(v1 + 456);
if ( this )
this = (*(int (__fastcall **)(int, cocos2d::CCObject *, cocos2d::CCObject *, int))(*(_DWORD *)this + 12))(
this,
v6,
v10,
v1);
}
else
{
v10 = v3;
}
++v4;
v3 = v10;
}
v2 = (CCIndexPath *)((char *)v2 + 1);
}
}
}
return this;
}