//
// sub_1006EE614 from 0x1006ee614 to 0x1006ee778 (356 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009c13f8
//
// 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:12:39 +0000
//
__int64 __fastcall sub_1006EE614(__int64 a1, const void *a2, unsigned int a3, __int64 a4, __int64 a5, __int64 a6)
{
char *v11; // x20
int v12; // w0
__int64 v13; // x0
void *v14; // x23
__int64 v15; // x21
__int64 v16; // x2
__int64 v17; // x4
char *v19; // [xsp+8h] [xbp-38h] BYREF
if ( (unsigned int)sub_1006F3234(a6) != (_DWORD)a5 )
{
v16 = 119;
v17 = 116;
LABEL_10:
sub_100706FB0(4, 120, v16, "rsa_saos.c", v17);
return 0;
}
v11 = sub_1006AE878(a5, (__int64)"rsa_saos.c", 120);
if ( !v11 )
{
v16 = 65;
v17 = 122;
goto LABEL_10;
}
v12 = sub_1006F3284(a5, a4, v11, a6, 1);
if ( v12 < 1 )
{
v15 = 0;
}
else
{
v19 = v11;
v13 = sub_10071F064(0, &v19, v12);
v14 = (void *)v13;
if ( v13 )
{
if ( *(_DWORD *)v13 == a3 && !memcmp(a2, *(const void **)(v13 + 8), a3) )
{
v15 = 1;
}
else
{
sub_100706FB0(4, 120, 104, "rsa_saos.c", 137);
v15 = 0;
}
sub_100721BE0(v14);
}
else
{
v15 = 0;
}
}
sub_1006B0510(v11, (unsigned int)a5);
sub_1006AEDAC(v11);
return v15;
}