//
// sub_102DBA0 from 0x102dba0 to 0x102dc30 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x1402978
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:18 +0000
//
__int64 __fastcall sub_102DBA0(__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;
}