//
// sub_1007FF280 from 0x1007ff280 to 0x1007ff2f3 (115 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::reverseKeyframeAnimationOrder @ 0x1000c852f
// > FriendsProfilePage::onToggleSort @ 0x100735e02
// > FriendsProfilePage::onToggleSortDir @ 0x100735f5e
// > FriendsProfilePage::sortUsers @ 0x100736f09
// > FriendsProfilePage::getUserListFinished @ 0x100737456
//
// 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:36:36 +0000
//
__int64 __fastcall sub_1007FF280(__int64 a1, __m128 a2)
{
__int64 result; // rax
int v3; // r14d
int v4; // r12d
unsigned int v5; // r14d
unsigned int i; // r15d
result = *(_QWORD *)(a1 + 56);
v3 = *(_DWORD *)result;
if ( *(_DWORD *)result >= 2u )
{
result = (unsigned int)v3;
a2.f32[0] = (float)v3 * 0.5;
v4 = (int)_mm_round_ss(a2, a2, 9).f32[0];
if ( v4 > 0 )
{
v5 = v3 - 1;
for ( i = 0; i != v4; ++i )
result = sub_1007470B0(*(_QWORD *)(a1 + 56), i, v5--);
}
}
return result;
}