//
// sub_102D9B8 from 0x102d9b8 to 0x102da38 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x14029e8
//
// 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_102D9B8(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4)
{
__int64 v4; // x20
__int64 v6; // x0
int v7; // w0
unsigned int v10; // [xsp+3Ch] [xbp+3Ch] BYREF
v4 = *(_QWORD *)(a1 + 40);
v6 = EVP_MD_CTX_md(a4);
v7 = EVP_MD_size(v6);
if ( v7 < 0 )
return 0;
*a3 = v7;
if ( a2 )
{
if ( (unsigned int)HMAC_Final(*(_QWORD *)(v4 + 32), a2, &v10) )
{
*a3 = v10;
return 1;
}
return 0;
}
return 1;
}