//
// TableView::checkBoundaryOfCell_1 from 0x1002ffdf8 to 0x1002fff1c (292 bytes)
//
// 2 xrefs:
// > TableView::checkLastCell @ 0x100300044
// > TableView::checkFirstCell @ 0x100300464
//
// 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 __fastcall TableView::checkBoundaryOfCell_1(TableView *a1, TableViewCell *a2)
{
__int64 *v4; // x0
float v5; // s0
float v6; // s8
float v7; // s8
float v8; // s8
float v9; // s11
float v10; // s8
float v11; // s9
float v12; // s10
float v13; // s0
float v15; // s8
__int64 v18; // [xsp+8h] [xbp-38h] BYREF
v4 = (__int64 *)((__int64 (__fastcall *)(TableViewCell *))a2->getPosition)(a2);
v5 = sub_1000229B8(&v18, v4);
v6 = *((float *)&v18 + 1);
v7 = v6 + *(float *)(((__int64 (__fastcall *)(TableViewCell *, float))a2->getContentSize)(a2, v5) + 4);
v8 = v7
- *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer) + 4);
v9 = v8
+ *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer) + 4);
v10 = *((float *)&v18 + 1);
v11 = *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer) + 4);
v12 = *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer) + 4);
v13 = *(float *)(((__int64 (__fastcall *)(TableView *))a1->getContentSize)(a1) + 4);
if ( v9 >= 0.0 && v9 <= v13 )
return 2;
v15 = (float)(v10 - v11) + v12;
if ( v15 > *(float *)(((__int64 (__fastcall *)(TableView *))a1->getContentSize)(a1) + 4) || v15 < 0.0 )
return 1;
else
return 2;
}