//
// TableView::checkBoundaryOfCell from 0x57bb9c to 0x57bcd0 (308 bytes)
//
// 3 xrefs:
// > TableView::checkBoundaryOfContent @ 0x57c738
// > TableView::checkBoundaryOfContent @ 0x57ca54
// > ??> @ 0xc80a0
//
// 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; // s0
float v4; // s8
float v5; // s8
float v6; // s8
float y; // s9
float height; // s11
float v9; // s10
float v11; // s9
float v12; // [xsp+40h] [xbp+40h]
cocos2d::CCPoint v13; // [xsp+50h] [xbp+50h] BYREF
v12 = v2;
cocos2d::CCPoint::CCPoint(&v13, (const cocos2d::CCPoint *)a2);
v4 = v12 + v13.y;
v5 = v4 - a1->m_contentLayer->getContentSize(a1->m_contentLayer)->height;
v6 = v5 + a1->m_contentLayer->getPosition(a1->m_contentLayer)->y;
y = v13.y;
height = a1->m_contentLayer->getContentSize(a1->m_contentLayer)->height;
v9 = a1->m_contentLayer->getPosition(a1->m_contentLayer)->y;
if ( v6 <= a1->getContentSize(a1)->height && v6 >= 0.0 )
return 2;
v11 = (float)(y - height) + v9;
if ( v11 <= a1->getContentSize(a1)->height && v11 >= 0.0 )
return 2;
else
return 1;
}