//
// TableView::checkBoundaryOfCell from 0x697128 to 0x697288 (352 bytes)
//
// 3 xrefs:
// > TableView::checkFirstCell @ 0x6973f0
// > TableView::checkLastCell @ 0x697774
// > ??> @ 0x9ba70
//
// 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::checkBoundaryOfCell(TableView *this, TableViewCell *a2)
{
const cocos2d::CCPoint *v4; // x0
float v5; // s8
float v6; // s8
float v7; // s8
float v8; // s8
float v9; // s9
float v10; // s11
float v11; // s10
float v13; // s9
_BYTE v14[4]; // [xsp+50h] [xbp+50h] BYREF
float v15; // [xsp+54h] [xbp+54h]
v4 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(TableViewCell *))(*(_QWORD *)a2 + 192LL))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v4);
v5 = v15;
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);
v9 = v15;
v10 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 61) + 328LL))(*((_QWORD *)this + 61)) + 4);
v11 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 61) + 192LL))(*((_QWORD *)this + 61)) + 4);
if ( v8 <= *(float *)((*(__int64 (__fastcall **)(TableView *))(*(_QWORD *)this + 328LL))(this) + 4) && v8 >= 0.0 )
return 2;
v13 = (float)(v9 - v10) + v11;
if ( v13 <= *(float *)((*(__int64 (__fastcall **)(TableView *))(*(_QWORD *)this + 328LL))(this) + 4) && v13 >= 0.0 )
return 2;
else
return 1;
}