//
// sub_F001F8 from 0xf001f8 to 0xf002b4 (188 bytes)
//
// 2 xrefs:
// > sub_F002B4 @ 0xf002c8
// > sub_F002B4 @ 0xf002d0
//
// 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 13:12:19 +0000
//
unsigned __int64 __fastcall sub_F001F8(unsigned __int64 a1, int a2, char *a3)
{
unsigned __int64 v3; // x14
char *v4; // x15
const char *v5; // x13
unsigned __int64 v6; // x14
int8x16_t v8; // [xsp+20h] [xbp-20h]
int8x16x4_t v9; // 0:q0.16,16:q1.16,32:q2.16,48:q3.16
v3 = a1 + 4LL * (int)(a2 & 0xFFFFFFF0);
if ( a1 < v3 )
{
v4 = a3;
v5 = (const char *)a1;
do
{
v9 = vld4q_s8(v5);
v5 += 64;
v8 = v9.val[0];
v9.val[0] = v9.val[2];
v9.val[2] = v8;
vst4q_s8(v4, v9);
v4 += 64;
}
while ( v3 > (unsigned __int64)v5 );
v6 = ((v3 + ~a1) & 0xFFFFFFFFFFFFFFC0LL) + 64;
a3 += v6;
a1 += v6;
}
return sub_EFA288(a1, a2 & 0xF, a3);
}