//
// TableView::checkBoundaryOfCell from 0x2e9b5c to 0x2e9c30 (212 bytes)
//
// 2 xrefs:
// > TableView::checkBoundaryOfContent @ 0x2ea30a
// > TableView::checkBoundaryOfContent @ 0x2ea3f4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int TableView::checkBoundaryOfCell(TableView *a1, TableViewCell *a2)
{
float v2; // r2
float v4; // s16
float v5; // s16
float v6; // s16
const cocos2d::CCPoint *v7; // r0
float y; // s17
float v9; // s16
float height; // s19
float v11; // s18
float v12; // s16
cocos2d::CCPoint v14; // [sp+4h] [bp-10h] BYREF
v4 = v2;
cocos2d::CCPoint::CCPoint(&v14, (const cocos2d::CCPoint *)a2);
v5 = v4 + v14.y;
v6 = v5 - a1->m_contentLayer->getContentSize(a1->m_contentLayer)->height;
v7 = a1->m_contentLayer->getPosition(a1->m_contentLayer);
y = v14.y;
v9 = v6 + v7->y;
height = a1->m_contentLayer->getContentSize(a1->m_contentLayer)->height;
v11 = a1->m_contentLayer->getPosition(a1->m_contentLayer)->y;
if ( v9 <= a1->getContentSize(a1)->height && v9 >= 0.0 )
return 2;
v12 = (float)(y - height) + v11;
if ( v12 <= a1->getContentSize(a1)->height && v12 >= 0.0 )
return 2;
else
return 1;
}