//
// sub_100052EF4 from 0x100052ef4 to 0x100052f64 (112 bytes)
//
// 2 xrefs:
// > UILayer::processUINodeTouch @ 0x100052b98
// > sub_100052E5C @ 0x100052ec0
//
// 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 10:57:44 +0000
//
__int64 __fastcall sub_100052EF4(__int64 a1, double *a2)
{
double v3; // d0
__int64 v5; // [xsp+8h] [xbp-18h] BYREF
if ( (*(_BYTE *)(a1 + 381) & 1) != 0 )
{
v3 = sub_1000262F4(&v5, a2);
return sub_1000537E0(a1, &v5, v3);
}
else if ( fabsf(*(float *)a2) >= *(float *)(a1 + 376) )
{
if ( *(float *)a2 >= 0.0 )
return 3;
else
return 2;
}
else
{
return 5;
}
}