//
// sub_1005EAEE8 from 0x1005eaee8 to 0x1005eaf5c (116 bytes)
//
// 19 xrefs:
// > ??> @ 0x10083b8b0
// > ??> @ 0x10083b908
// > ??> @ 0x10083b960
// > ??> @ 0x10083b9b8
// > ??> @ 0x10083ba10
// > ??> @ 0x10083ba68
// > ??> @ 0x10083bac0
// > ??> @ 0x10083bb18
// > ??> @ 0x10083bb70
// > ??> @ 0x10083bbc8
// > ??> @ 0x10083bc20
// > ??> @ 0x10083bc78
// > ??> @ 0x10083bcd0
// > ??> @ 0x10083bd28
// > ??> @ 0x10083d488
// > ??> @ 0x10083d6f0
// > ??> @ 0x10083d748
// > ??> @ 0x10083d7a0
// > ??> @ 0x10083d7f8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1005EAEE8(__int64 a1, __int64 a2, __int64 a3, int a4, int a5, int a6, int a7, int a8)
{
if ( !a2 )
return 0;
if ( *(_DWORD *)(*(_QWORD *)a1 + 12LL) >= 0x11u )
sub_1005884E4((char)"evp_lib.c", 148, (int)"j <= sizeof(c->iv)", a4, a5, a6, a7, a8);
return sub_1005FBF10(a2, a1 + 24, *(unsigned int *)(*(_QWORD *)a1 + 12LL));
}