//
// sub_1006EEC24 from 0x1006eec24 to 0x1006eed10 (236 bytes)
//
// 1 xrefs:
// > sub_1006EBE00 @ 0x1006ebfe0
//
// 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_1006EEC24(_WORD *a1, int a2, const void *a3, unsigned int a4)
{
__int64 v6; // x22
_WORD *v8; // x21
int v9; // w23
v6 = a2 - 11 - a4;
if ( a2 - 11 >= (int)a4 )
{
*a1 = 512;
v8 = a1 + 1;
if ( (int)sub_100706330(a1 + 1, v6) < 1 )
{
return 0;
}
else if ( (int)v6 < 1 )
{
LABEL_10:
*(_QWORD *)v8 = 0x303030303030303LL;
*((_BYTE *)v8 + 8) = 0;
memcpy((char *)v8 + 9, a3, a4);
return 1;
}
else
{
v9 = 0;
do
{
while ( *(_BYTE *)v8 )
{
v8 = (_WORD *)((char *)v8 + 1);
if ( ++v9 >= (int)v6 )
goto LABEL_10;
}
}
while ( (int)sub_100706330(v8, 1) >= 1 );
return 0;
}
}
else
{
sub_100706FB0(4, 110, 110, "rsa_ssl.c", 73);
return 0;
}
}