//
// sub_80897C from 0x80897c to 0x8089f4 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0xa322e4
//
// 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
//
int __fastcall sub_80897C(int a1)
{
int v2; // r0
int v3; // r4
int v4; // r6
v2 = CRYPTO_zalloc(24, "crypto/hmac/hm_pmeth.c", 30);
v3 = v2;
if ( !v2 )
return 0;
*(_DWORD *)(v2 + 8) = 4;
v4 = HMAC_CTX_new(v2);
*(_DWORD *)(v3 + 20) = v4;
if ( v4 )
{
*(_DWORD *)(a1 + 20) = v3;
*(_DWORD *)(a1 + 36) = 0;
return 1;
}
else
{
CRYPTO_free(v3, "crypto/hmac/hm_pmeth.c", 36);
return 0;
}
}