//
// sub_DAF430 from 0xdaf430 to 0xdaf4bc (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x11253c8
//
// 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_DAF430(__int64 a1, void **a2)
{
const void **v3; // x20
__int64 result; // x0
void *v5; // x0
v3 = (const void **)EVP_PKEY_get0(a1);
if ( !a2 )
return *(unsigned int *)v3;
if ( !*a2 )
{
v5 = (void *)CRYPTO_malloc(*(int *)v3, "crypto/hmac/hm_ameth.c", 83);
*a2 = v5;
if ( !v5 )
return 0xFFFFFFFFLL;
memcpy(v5, v3[1], *(int *)v3);
return *(unsigned int *)v3;
}
memcpy(*a2, v3[1], *(int *)v3);
result = *(unsigned int *)v3;
*a2 = (char *)*a2 + (int)result;
return result;
}