//
// sub_100518614 from 0x100518614 to 0x100518690 (124 bytes)
//
// 1 xrefs:
// > sub_1004B6AB0 @ 0x1004b6f64
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100518614(__int64 a1, int a2, unsigned int a3, int a4)
{
int8x16_t *v4; // x8
int8x16_t *v5; // x8
if ( a3 == 8 && a4 == 1 )
{
if ( a2 >= 1 )
{
v4 = (int8x16_t *)(a1 + 16);
do
{
*v4 = vextq_s8(*v4, *v4, 8u);
v4 += 2;
--a2;
}
while ( a2 );
}
}
else if ( a4 == 5 && (a3 == 8 || a3 == 6) && a2 >= 1 )
{
v5 = (int8x16_t *)(a1 + 8);
do
{
*v5 = vextq_s8(*v5, *v5, 8u);
v5 = (int8x16_t *)((char *)v5 + 4 * a3);
--a2;
}
while ( a2 );
}
return 0;
}