//
// sub_701258 from 0x701258 to 0x701382 (298 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall sub_701258(unsigned int a1, int a2, int a3, int a4, unsigned int a5, int a6)
{
int v7; // r10
int v8; // r6
int v9; // r4
bool v10; // cf
char v11; // r7
int v12; // r7
int8x16_t v13; // q8
const char *v14; // r7
int64x2_t *v15; // r12
unsigned int v16; // lr
int64x2_t v17; // q12
const char *v18; // r8
int8x16_t v19; // q8
int8x16_t v20; // q8
int8x16_t v21; // q8
int v22; // r7
_BYTE *v24; // r12
int v25; // lr
unsigned int v26; // r12
int v27; // lr
unsigned int v28; // [sp+Ch] [bp-8h]
if ( a4 > 0 )
{
v7 = 4 * a3;
v8 = 0;
v9 = 255;
v28 = ((unsigned int)(a3 - 17) >> 4) + 1;
while ( 1 )
{
if ( a3 <= 0 )
goto LABEL_18;
v10 = a5 >= a1 + v7;
if ( a5 < a1 + v7 )
v10 = a1 >= a5 + a3;
v11 = v10;
if ( (unsigned int)a3 > 0xF )
v12 = v11 & 1;
else
v12 = 0;
if ( v12 )
{
if ( (unsigned int)(a3 - 1) <= 0xF )
{
v22 = 0;
LABEL_21:
v24 = (_BYTE *)(a5 + v22);
do
{
v25 = *(unsigned __int8 *)(a1 + 4 * v22++);
v9 &= v25;
*v24++ = v25;
}
while ( a3 > v22 );
++v8;
a1 += a2;
a5 += a6;
if ( v8 == a4 )
return v9 == 255;
}
else
{
v13.n128_u64[0] = -1;
v13.n128_u64[1] = -1;
v14 = (const char *)a1;
v15 = (int64x2_t *)a5;
v16 = 0;
do
{
v17.n128_u64[0] = vld4_s8(v14).val[0].n64_u64[0];
v18 = v14 + 32;
++v16;
v14 += 64;
v17.n128_u64[1] = vld4_s8(v18).val[0].n64_u64[0];
v13 = vandq_s64(v13, v17);
*v15++ = v17;
}
while ( v28 > v16 );
v19 = vandq_s64(vextq_s8(v13, (int8x16_t)0LL, 8u), v13);
v20 = vandq_s64(vextq_s8(v19, (int8x16_t)0LL, 4u), v19);
v21 = vandq_s64(vextq_s8(v20, (int8x16_t)0LL, 2u), v20);
v9 = (unsigned __int8)(v9 & vandq_s64(vextq_s8(v21, (int8x16_t)0LL, 1u), v21).n128_u8[0]);
if ( a3 != 16 * v28 )
{
v22 = 16 * v28;
goto LABEL_21;
}
LABEL_18:
++v8;
a1 += a2;
a5 += a6;
if ( v8 == a4 )
return v9 == 255;
}
}
else
{
v26 = a5 - 1;
do
{
v27 = *(unsigned __int8 *)(a1 + 4 * v12++);
v9 &= v27;
*(_BYTE *)++v26 = v27;
}
while ( v12 != a3 );
++v8;
a1 += a2;
a5 += a6;
if ( v8 == a4 )
return v9 == 255;
}
}
}
return 1;
}