//
// TableView::checkBoundaryOfCell from 0x3c9ea8 to 0x3c9f92 (234 bytes)
//
// 2 xrefs:
// > TableView::checkFirstCell @ 0x3ca08e
// > TableView::checkLastCell @ 0x3ca26c
//
// 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::checkBoundaryOfCell(TableView *this, TableViewCell *a2)
{
const cocos2d::CCPoint *v4; // r0
float v5; // s16
float v6; // s16
float v7; // s16
int v8; // r0
float v9; // s17
float v10; // s16
float v11; // s19
float v12; // s18
float v13; // s16
_BYTE v15[4]; // [sp+4h] [bp-Ch] BYREF
float v16; // [sp+8h] [bp-8h]
v4 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(TableViewCell *))(*(_DWORD *)a2 + 96))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v4);
v5 = v16;
v6 = v5 + *(float *)((*(int (__fastcall **)(TableViewCell *))(*(_DWORD *)a2 + 164))(a2) + 4);
v7 = v6 - *(float *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 91) + 164))(*((_DWORD *)this + 91)) + 4);
v8 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 91) + 96))(*((_DWORD *)this + 91));
v9 = v16;
v10 = v7 + *(float *)(v8 + 4);
v11 = *(float *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 91) + 164))(*((_DWORD *)this + 91)) + 4);
v12 = *(float *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 91) + 96))(*((_DWORD *)this + 91)) + 4);
if ( v10 <= *(float *)((*(int (__fastcall **)(TableView *))(*(_DWORD *)this + 164))(this) + 4) && v10 >= 0.0 )
return 2;
v13 = (float)(v9 - v11) + v12;
if ( v13 <= *(float *)((*(int (__fastcall **)(TableView *))(*(_DWORD *)this + 164))(this) + 4) && v13 >= 0.0 )
return 2;
else
return 1;
}