//
// TableView::checkBoundaryOfCell_1 from 0x100700100 to 0x10070023a (314 bytes)
//
// 2 xrefs:
// > TableView::checkLastCell @ 0x100700377
// > TableView::checkFirstCell @ 0x100700927
//
// 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 12:35:58 +0000
//
__int64 __fastcall TableView::checkBoundaryOfCell_1(_QWORD **a1, __int64 a2)
{
_QWORD *v4; // rsi
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // rax
__int64 v8; // rax
float v9; // xmm0_4
__int64 result; // rax
__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 = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2);
sub_1002782D0(&v13, v4);
v16 = *((float *)&v13 + 1);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2);
v16 = v16 + *(float *)(v5 + 4);
v6 = (*(__int64 (__fastcall **)(_QWORD *))(*a1[61] + 328LL))(a1[61]);
v16 = v16 - *(float *)(v6 + 4);
v7 = (*(__int64 (__fastcall **)(_QWORD *))(*a1[61] + 192LL))(a1[61]);
v16 = v16 + *(float *)(v7 + 4);
v12 = (__m128)HIDWORD(v13);
v14 = *(float *)((*(__int64 (__fastcall **)(_QWORD *))(*a1[61] + 328LL))(a1[61]) + 4);
v15 = *(float *)((*(__int64 (__fastcall **)(_QWORD *))(*a1[61] + 192LL))(a1[61]) + 4);
v8 = ((__int64 (__fastcall *)(_QWORD **))(*a1)[41])(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 (unsigned int)(1
- _mm_cvtsi128_si32((__m128i)_mm_and_ps(
_mm_cmple_ps(
v11,
(__m128)*(unsigned int *)(((__int64 (__fastcall *)(_QWORD **))(*a1)[41])(a1)
+ 4)),
_mm_cmple_ps((__m128)0LL, v11))));
}
return result;
}