//
// TableView::checkFirstCell from 0x6973bc to 0x697738 (892 bytes)
//
// 3 xrefs:
// > TableView::checkBoundaryOfContent @ 0x697ce8
// > TableView::checkBoundaryOfContent @ 0x69808c
// > ??> @ 0xae688
//
// 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::checkFirstCell(TableView *this, TableViewCell *a2)
{
const cocos2d::CCPoint *v4; // x0
float v5; // s8
float v6; // s8
float v7; // s8
float v8; // s8
int v10; // w24
int v11; // w23
cocos2d::CCObject *v12; // x22
int v13; // w0
int v14; // w1
float v15; // s8
cocos2d::CCObject *v16; // x23
void (__fastcall *v17)(cocos2d::CCObject *, _BYTE *); // x25
void (__fastcall *v18)(cocos2d::CCObject *, _BYTE *); // x25
float *v19; // x0
void (__fastcall *v20)(cocos2d::CCObject *, _BYTE *); // x25
float v21; // s8
__int64 v22; // x0
__int64 v23; // x0
__int64 v24; // x0
_BYTE v25[4]; // [xsp+58h] [xbp+58h] BYREF
float v26; // [xsp+5Ch] [xbp+5Ch]
_BYTE v27[8]; // [xsp+60h] [xbp+60h] BYREF
if ( (unsigned int)TableView::checkBoundaryOfCell(this, a2) != 1 )
{
v4 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(TableViewCell *))(*(_QWORD *)a2 + 192LL))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v4);
v5 = v26;
v6 = v5 + *(float *)((*(__int64 (__fastcall **)(TableViewCell *))(*(_QWORD *)a2 + 328LL))(a2) + 4);
v7 = v6
- *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 61) + 328LL))(*((_QWORD *)this + 61)) + 4);
v8 = v7
+ *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 61) + 192LL))(*((_QWORD *)this + 61)) + 4);
if ( v8 < *(float *)((*(__int64 (__fastcall **)(TableView *))(*(_QWORD *)this + 328LL))(this) + 4) )
{
v10 = *((_DWORD *)a2 + 121);
v11 = *((_DWORD *)a2 + 120) - 1;
v12 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject(v12);
*((_DWORD *)v12 + 14) = v11;
*((_DWORD *)v12 + 15) = v10;
*(_QWORD *)v12 = &off_1418970;
cocos2d::CCObject::autorelease(v12);
v13 = (***((__int64 (__fastcall ****)(_QWORD, _QWORD, TableView *))this + 78))(
*((_QWORD *)this + 78),
*((unsigned int *)a2 + 121),
this);
v14 = *((_DWORD *)v12 + 14);
if ( v13 > v14
&& (v14 & 0x80000000) == 0
&& !TableView::isDuplicateInVisibleCellArray((__int64)this, (__int64)v12) )
{
v15 = (*(float (__fastcall **)(_QWORD, cocos2d::CCObject *, TableView *))(**((_QWORD **)this + 77) + 40LL))(
*((_QWORD *)this + 77),
v12,
this);
v16 = (cocos2d::CCObject *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::CCObject *, TableView *))(**((_QWORD **)this + 78) + 24LL))(
*((_QWORD *)this + 78),
v12,
this);
if ( v16 )
{
v17 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v16 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 0.0, 1.0);
v17(v16, v27);
v18 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v16 + 320LL);
v19 = (float *)(*(__int64 (__fastcall **)(TableView *))(*(_QWORD *)this + 328LL))(this);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v27, *v19, v15);
v18(v16, v27);
v20 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v16 + 184LL);
v21 = *(float *)((*(__int64 (__fastcall **)(TableViewCell *))(*(_QWORD *)a2 + 192LL))(a2) + 4);
v22 = (*(__int64 (__fastcall **)(TableViewCell *))(*(_QWORD *)a2 + 328LL))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 0.0, v21 + *(float *)(v22 + 4));
v20(v16, v27);
*((_DWORD *)v16 + 108) = *((_DWORD *)v12 + 2);
*((_DWORD *)v16 + 109) = *((_DWORD *)v12 + 3);
*((_DWORD *)v16 + 110) = *((_DWORD *)v12 + 4);
*((_DWORD *)v16 + 111) = *((_DWORD *)v12 + 5);
*((_DWORD *)v16 + 112) = *((_DWORD *)v12 + 6);
*((_DWORD *)v16 + 113) = *((_DWORD *)v12 + 7);
*((_DWORD *)v16 + 114) = *((_DWORD *)v12 + 8);
*((_DWORD *)v16 + 115) = *((_DWORD *)v12 + 9);
*((_DWORD *)v16 + 116) = *((_DWORD *)v12 + 10);
*((_DWORD *)v16 + 117) = *((_DWORD *)v12 + 11);
*((_DWORD *)v16 + 118) = *((_DWORD *)v12 + 12);
*((_DWORD *)v16 + 119) = *((_DWORD *)v12 + 13);
*((_DWORD *)v16 + 120) = *((_DWORD *)v12 + 14);
*((_DWORD *)v16 + 121) = *((_DWORD *)v12 + 15);
cocos2d::CCArray::insertObject(*((cocos2d::CCArray **)this + 74), v16, 0);
if ( !(unsigned __int8)TableView::isDuplicateIndexPath((__int64)this, (__int64)v12) )
cocos2d::CCArray::insertObject(*((cocos2d::CCArray **)this + 76), v12, 0);
v23 = *((_QWORD *)this + 77);
if ( v23 )
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, cocos2d::CCObject *, TableView *))(*(_QWORD *)v23 + 16LL))(
v23,
v12,
v16,
this);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 61) + 456LL))(
*((_QWORD *)this + 61),
v16);
v24 = *((_QWORD *)this + 77);
if ( v24 )
(*(void (__fastcall **)(__int64, cocos2d::CCObject *, cocos2d::CCObject *, TableView *))(*(_QWORD *)v24 + 24LL))(
v24,
v12,
v16,
this);
}
}
}
}
return _stack_chk_guard;
}