//
// sub_A1D57C from 0xa1d57c to 0xa1d5f4 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0xc79564
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:07:53 +0000
//
int __fastcall sub_A1D57C(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;
}
}