//
// sub_DAF840 from 0xdaf840 to 0xdaf8d0 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x11253e8
//
// 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_DAF840(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x19
__int64 v4; // x0
result = CRYPTO_zalloc(40, "crypto/hmac/hm_pmeth.c", 30);
v3 = result;
if ( result )
{
*(_DWORD *)(result + 12) = 4;
v4 = HMAC_CTX_new();
*(_QWORD *)(v3 + 32) = v4;
if ( v4 )
{
*(_QWORD *)(a1 + 40) = v3;
*(_DWORD *)(a1 + 72) = 0;
return 1;
}
else
{
CRYPTO_free(v3, "crypto/hmac/hm_pmeth.c", 36);
return 0;
}
}
return result;
}