//
// sub_DAF658 from 0xdaf658 to 0xdaf6d8 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x1125458
//
// 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_DAF658(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4)
{
__int64 v4; // x20
__int64 v6; // x0
int v7; // w0
unsigned int v10; // [xsp+3Ch] [xbp+3Ch] BYREF
v4 = *(_QWORD *)(a1 + 40);
v6 = EVP_MD_CTX_md(a4);
v7 = EVP_MD_size(v6);
if ( v7 < 0 )
return 0;
*a3 = v7;
if ( a2 )
{
if ( (unsigned int)HMAC_Final(*(_QWORD *)(v4 + 32), a2, &v10) )
{
*a3 = v10;
return 1;
}
return 0;
}
return 1;
}