//
// sub_1001E30D8 from 0x1001e30d8 to 0x1001e31b4 (220 bytes)
//
// 2 xrefs:
// > sub_1001DDB20 @ 0x1001ddb5c
// > sub_1001E2AB4 @ 0x1001e2af0
//
// 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:00:31 +0000
//
bool __fastcall sub_1001E30D8(_QWORD *a1, const void **a2)
{
__int64 v2; // x9
unsigned __int64 v3; // x21
char v4; // w9
size_t v5; // x19
const void *v6; // x20
__int64 v7; // x22
__int64 v8; // x23
unsigned __int64 v9; // x24
bool v10; // w25
__int64 v11; // x9
int v12; // w8
const void *v13; // x0
v2 = a1[1] - *a1;
if ( v2 )
{
v3 = 0x6DB6DB6DB6DB6DB7LL * (v2 >> 3);
v4 = *((_BYTE *)a2 + 23);
if ( v4 >= 0 )
v5 = *((unsigned __int8 *)a2 + 23);
else
v5 = (size_t)a2[1];
if ( v4 >= 0 )
v6 = a2;
else
v6 = *a2;
if ( v3 <= 1 )
v7 = 1;
else
v7 = v3;
v8 = *a1 + 32LL;
v9 = 1;
v10 = 1;
do
{
v11 = *(unsigned __int8 *)(v8 + 23);
v12 = (char)v11;
if ( (v11 & 0x80u) != 0LL )
v11 = *(_QWORD *)(v8 + 8);
if ( v11 == v5 )
{
v13 = v12 >= 0 ? (const void *)v8 : *(const void **)v8;
if ( !memcmp(v13, v6, v5) )
break;
}
v8 += 56;
v10 = v9++ < v3;
--v7;
}
while ( v7 );
}
else
{
return 0;
}
return v10;
}