//
// TableView::checkBoundaryOfCell_1 from 0x140088b50 to 0x140088c70 (288 bytes)
//
// 3 xrefs:
// > TableView::checkFirstCell @ 0x14008934b
// > TableView::checkLastCell @ 0x140089611
// > ??> @ 0x140912668
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:58 +0000
//
__int64 __fastcall TableView::checkBoundaryOfCell_1(_QWORD *a1, __int64 a2)
{
const struct cocos2d::CCPoint *v4; // rax
__int64 v5; // rdi
__int64 v6; // rax
float v7; // xmm8_4
float v8; // xmm8_4
__int64 v9; // rax
__int64 v10; // rbx
float v11; // xmm8_4
__int64 v12; // rax
float v13; // xmm6_4
float v14; // xmm6_4
char v16; // [rsp+60h] [rbp+8h] BYREF
float v17; // [rsp+64h] [rbp+Ch]
v4 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, v4);
v5 = a1[60];
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 320LL))(a2);
v7 = v17 + *(float *)(v6 + 4);
v8 = v7 - *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 320LL))(v5) + 4);
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 200LL))(v5);
v10 = a1[60];
v11 = v8 + *(float *)(v9 + 4);
v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 320LL))(v10);
v13 = v17 - *(float *)(v12 + 4);
v14 = v13 + *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 200LL))(v10) + 4);
if ( *(float *)((*(__int64 (__fastcall **)(_QWORD *))(*a1 + 320LL))(a1) + 4) >= v11 && v11 >= 0.0 )
return 2;
if ( *(float *)((*(__int64 (__fastcall **)(_QWORD *))(*a1 + 320LL))(a1) + 4) < v14 )
return 1;
return (unsigned int)(v14 >= 0.0) + 1;
}