//
// sub_1006EE4F0 from 0x1006ee4f0 to 0x1006ee614 (292 bytes)
//
// 2 xrefs:
// > sub_1006F22A4 @ 0x1006f232c
// > ??> @ 0x1009c13f0
//
// 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_1006EE4F0(__int64 a1, __int64 a2, int a3, __int64 a4, int *a5, __int64 a6)
{
__int64 v9; // x24
int v10; // w0
__int64 v11; // x2
__int64 v12; // x4
unsigned int v13; // w22
char *v14; // x0
char *v15; // x23
int v16; // w0
__int64 v17; // x19
char *v19; // [xsp+0h] [xbp-50h] BYREF
_DWORD v20[2]; // [xsp+8h] [xbp-48h] BYREF
__int64 v21; // [xsp+10h] [xbp-40h]
v20[0] = a3;
v20[1] = 4;
v21 = a2;
v9 = sub_10071F070(v20, 0);
v10 = sub_1006F3234(a6);
if ( (int)v9 > v10 - 11 )
{
v11 = 112;
v12 = 83;
LABEL_7:
sub_100706FB0(4, 118, v11, "rsa_saos.c", v12);
return 0;
}
v13 = v10 + 1;
v14 = sub_1006AE878((unsigned int)(v10 + 1), (__int64)"rsa_saos.c", 86);
v15 = v14;
if ( !v14 )
{
v11 = 65;
v12 = 88;
goto LABEL_7;
}
v19 = v14;
sub_10071F070(v20, &v19);
v16 = sub_1006F326C(v9, v15, a4, a6, 1);
if ( v16 < 1 )
{
v17 = 0;
}
else
{
*a5 = v16;
v17 = 1;
}
sub_1006B0510(v15, v13);
sub_1006AEDAC(v15);
return v17;
}