//
// HMAC_Init from 0x808fd4 to 0x80901c (72 bytes)
//
// 1 xrefs:
// > ??> @ 0x63fcc
//
// 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
//
bool __fastcall HMAC_Init(int a1, const void *a2, size_t a3, int a4)
{
bool v4; // zf
const void *v7; // [sp+Ch] [bp-Ch]
size_t v8; // [sp+10h] [bp-8h]
int v9; // [sp+14h] [bp-4h]
v4 = a2 == nullptr;
if ( a2 )
v4 = a4 == 0;
if ( !v4 )
{
v9 = a4;
v8 = a3;
v7 = a2;
HMAC_CTX_reset(a1);
a2 = v7;
a3 = v8;
a4 = v9;
}
return HMAC_Init_ex(a1, a2, a3, a4, nullptr);
}