//
// TableView::checkBoundaryOfCell from 0x100623a40 to 0x100623b5a (282 bytes)
//
// 1 xrefs:
// > TableView::checkBoundaryOfContent @ 0x100623355
//
// 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)
{
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rax
float v7; // xmm0_4
int result; // eax
__m128 v9; // xmm0
__m128 v10; // [rsp+0h] [rbp-30h]
__int64 v11; // [rsp+14h] [rbp-1Ch] BYREF
float v12; // [rsp+1Ch] [rbp-14h]
float v13; // [rsp+20h] [rbp-10h]
float v14; // [rsp+24h] [rbp-Ch]
v14 = a3;
sub_10028CC60(&v11, (double *)a2);
v14 = v14 + *((float *)&v11 + 1);
v4 = ((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer);
v14 = v14 - *(float *)(v4 + 4);
v5 = ((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer);
v14 = v14 + *(float *)(v5 + 4);
v10 = (__m128)HIDWORD(v11);
v12 = *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer) + 4);
v13 = *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer) + 4);
v6 = ((__int64 (__fastcall *)(TableView *))a1->getContentSize)(a1);
if ( v14 < 0.0 || (v7 = *(float *)(v6 + 4), result = 2, v7 < v14) )
{
v9 = v10;
v9.f32[0] = (float)(v10.f32[0] - v12) + v13;
return 1
- _mm_cvtsi128_si32((__m128i)_mm_and_ps(
_mm_cmple_ps(
v9,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(TableView *))a1->getContentSize)(a1)
+ 4)),
_mm_cmple_ps((__m128)0LL, v9)));
}
return result;
}