//
// sub_1002E76C0 from 0x1002e76c0 to 0x1002e772c (108 bytes)
//
// 2 xrefs:
// > sub_1002731B0 @ 0x100273220
// > sub_10040642C @ 0x10040644c
//
// 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:02:51 +0000
//
__int64 __fastcall sub_1002E76C0(__int64 result)
{
unsigned int v1; // w8
int v2; // w22
__int64 v3; // x19
__int64 v4; // x20
__int64 v5; // x21
v1 = **(_DWORD **)(result + 56);
if ( v1 >= 2 )
{
v2 = vcvtms_s32_f32(vcvts_n_f32_u32(v1, 1u));
if ( v2 >= 1 )
{
v3 = result;
v4 = 0;
v5 = v1 - 1;
do
{
result = sub_1003F3214(*(_QWORD *)(v3 + 56), v4, v5);
v4 = (unsigned int)(v4 + 1);
v5 = (unsigned int)(v5 - 1);
}
while ( v2 != (_DWORD)v4 );
}
}
return result;
}