//
// sub_100281374 from 0x100281374 to 0x100281448 (212 bytes)
//
// 3 xrefs:
// > sub_100281448 @ 0x100281478
// > sub_100281448 @ 0x1002814a4
// > sub_100404390 @ 0x100404410
//
// This function is hookable on this platform (idp: arm, 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:01:55 +0000
//
_QWORD *__fastcall sub_100281374(__int64 a1)
{
unsigned int *v1; // x9
__int64 v2; // x8
_QWORD *v3; // x19
_QWORD *v4; // x21
unsigned __int64 v5; // x22
int v6; // w23
float v7; // s8
_QWORD *v8; // x20
float *v9; // x0
float v10; // s0
__int64 v11; // x9
int v12; // w8
if ( a1 )
{
v1 = *(unsigned int **)(a1 + 56);
v2 = *v1;
if ( (_DWORD)v2 )
{
v3 = nullptr;
v4 = *((_QWORD **)v1 + 2);
v5 = (unsigned __int64)&v4[v2 - 1];
v6 = -1;
v7 = 0.0;
while ( 1 )
{
v8 = (_QWORD *)*v4;
if ( !*v4 )
return v3;
v9 = (float *)(*(__int64 (__fastcall **)(_QWORD))(*v8 + 192LL))(*v4);
v10 = *v9;
v11 = v8[230];
v12 = *(_DWORD *)(v11 + 372);
if ( v12 <= v6 )
{
if ( *(_BYTE *)(v11 + 370) == 1 )
{
if ( v12 < v6 || v10 >= v7 )
goto LABEL_7;
}
else if ( v12 < v6 || v10 <= v7 )
{
goto LABEL_7;
}
}
v6 = *(_DWORD *)(v11 + 372);
v7 = *v9;
v3 = v8;
LABEL_7:
if ( (unsigned __int64)++v4 > v5 )
return v3;
}
}
}
return nullptr;
}