//
// sub_1002FA0C8 from 0x1002fa0c8 to 0x1002fa1b8 (240 bytes)
//
// 2 xrefs:
// > EditorUI::spriteFromObjectString @ 0x100184ea4
// > sub_1002F352C @ 0x1002f3598
//
// 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:03:01 +0000
//
__int64 __fastcall sub_1002FA0C8(_QWORD *a1)
{
__int64 result; // x0
__int64 v3; // x2
double *v4; // x0
__int64 v5; // x19
float v6; // [xsp+0h] [xbp-20h] BYREF
__int64 v7; // [xsp+8h] [xbp-18h] BYREF
result = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)a1[111] + 512LL))(a1[111]);
if ( (_QWORD *)result != a1 )
{
*((_BYTE *)a1 + 866) = 1;
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[111] + 528LL))(a1[111], 0);
if ( *((_BYTE *)a1 + 1053) )
v3 = 100;
else
v3 = 4294967196LL;
(*(void (__fastcall **)(_QWORD *, _QWORD, __int64))(*a1 + 464LL))(a1, a1[111], v3);
(*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)a1[111] + 160LL))(a1[111], 1.0);
(*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)a1[111] + 360LL))(a1[111], 0.0);
v4 = (double *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 328LL))(a1);
sub_100026438(&v7, v4);
v5 = a1[111];
sub_1000262BC(&v6, *(float *)&v7 * 0.5, *((float *)&v7 + 1) * 0.5);
return (*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)v5 + 184LL))(v5, &v6);
}
return result;
}