//
// sub_1001A8AA0 from 0x1001a8aa0 to 0x1001a8b70 (208 bytes)
//
// 1 xrefs:
// > EditorUI::addObjectsToSmartTemplate @ 0x100478ab8
//
// 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:00:04 +0000
//
__int64 __fastcall sub_1001A8AA0(_QWORD *a1, __int64 *a2)
{
__int64 v2; // x20
__int64 v3; // x19
float v4; // s8
float v5; // s0
__int64 v7; // [xsp+8h] [xbp-28h] BYREF
v2 = *a1;
v3 = *a2;
(*(void (__fastcall **)(__int64 *__return_ptr, _QWORD))(*(_QWORD *)*a1 + 1360LL))(&v7, *a1);
v4 = *(float *)&v7;
(*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)v3 + 1360LL))(&v7, v3);
v5 = *(float *)&v7;
if ( v4 == *(float *)&v7 )
{
(*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)v2 + 1360LL))(&v7, v2);
v4 = *((float *)&v7 + 1);
(*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)v3 + 1360LL))(&v7, v3);
v5 = *((float *)&v7 + 1);
if ( v4 == *((float *)&v7 + 1) )
{
v4 = (float)*(int *)(v2 + 1028);
v5 = (float)*(int *)(v3 + 1028);
if ( v4 == v5 )
{
v4 = (float)*(unsigned int *)(v2 + 916);
v5 = (float)*(unsigned int *)(v3 + 916);
}
}
}
return (unsigned int)(int)(float)(v4 - v5);
}