//
// TableView::checkBoundaryOfCell from 0x1002fff1c to 0x100300018 (252 bytes)
//
// 2 xrefs:
// > TableView::checkBoundaryOfContent @ 0x1002ff718
// > TableView::checkBoundaryOfContent @ 0x1002ff9d4
//
// 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(TableView *a1, cocos2d::CCPoint *a2, float a3)
{
float v5; // s8
float v6; // s8
float v7; // s11
float v8; // s8
float v9; // s9
float v10; // s10
float v11; // s0
float v13; // s8
__int64 v16; // [xsp+8h] [xbp-38h] BYREF
sub_1000229B8(&v16, (__int64 *)a2);
v5 = *((float *)&v16 + 1) + a3;
v6 = v5
- *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer) + 4);
v7 = v6
+ *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer) + 4);
v8 = *((float *)&v16 + 1);
v9 = *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer) + 4);
v10 = *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer) + 4);
v11 = *(float *)(((__int64 (__fastcall *)(TableView *))a1->getContentSize)(a1) + 4);
if ( v7 >= 0.0 && v7 <= v11 )
return 2;
v13 = (float)(v8 - v9) + v10;
if ( v13 > *(float *)(((__int64 (__fastcall *)(TableView *))a1->getContentSize)(a1) + 4) || v13 < 0.0 )
return 1;
else
return 2;
}