//
// sub_1006EEF0C from 0x1006eef0c to 0x1006eef90 (132 bytes)
//
// 3 xrefs:
// > sub_1006EC154 @ 0x1006ec438
// > sub_1006EC940 @ 0x1006ecd80
// > sub_100748108 @ 0x1007482ac
//
// 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_1006EEF0C(char *a1, __int64 a2, const void *a3, int a4)
{
__int64 v6; // x19
v6 = a2;
if ( (int)a2 >= a4 )
{
bzero(a1, (int)a2 - a4);
memcpy(&a1[(int)v6 - (__int64)a4], a3, a4);
}
else
{
sub_100706FB0(4, 111, 109, "rsa_none.c", 87);
return 0xFFFFFFFFLL;
}
return v6;
}