//
// TableView::checkBoundaryOfCell_1 from 0x100623900 to 0x100623a3a (314 bytes)
//
// 2 xrefs:
// > TableView::checkLastCell @ 0x100623b77
// > TableView::checkFirstCell @ 0x100624127
//
// 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)
{
double *v4; // rsi
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // rax
__int64 v8; // rax
float v9; // xmm0_4
int result; // eax
__m128 v11; // xmm0
__m128 v12; // [rsp+0h] [rbp-40h]
__int64 v13; // [rsp+1Ch] [rbp-24h] BYREF
float v14; // [rsp+24h] [rbp-1Ch]
float v15; // [rsp+28h] [rbp-18h]
float v16; // [rsp+2Ch] [rbp-14h]
v4 = (double *)((__int64 (__fastcall *)(TableViewCell *))a2->getPosition)(a2);
sub_10028CC60(&v13, v4);
v16 = *((float *)&v13 + 1);
v5 = ((__int64 (__fastcall *)(TableViewCell *))a2->getContentSize)(a2);
v16 = v16 + *(float *)(v5 + 4);
v6 = ((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer);
v16 = v16 - *(float *)(v6 + 4);
v7 = ((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer);
v16 = v16 + *(float *)(v7 + 4);
v12 = (__m128)HIDWORD(v13);
v14 = *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer) + 4);
v15 = *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer) + 4);
v8 = ((__int64 (__fastcall *)(TableView *))a1->getContentSize)(a1);
if ( v16 < 0.0 || (v9 = *(float *)(v8 + 4), result = 2, v9 < v16) )
{
v11 = v12;
v11.f32[0] = (float)(v12.f32[0] - v14) + v15;
return 1
- _mm_cvtsi128_si32((__m128i)_mm_and_ps(
_mm_cmple_ps(
v11,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(TableView *))a1->getContentSize)(a1)
+ 4)),
_mm_cmple_ps((__m128)0LL, v11)));
}
return result;
}