//
// sub_A1D324 from 0xa1d324 to 0xa1d3e0 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0xc795c0
//
// 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_A1D324(_DWORD *a1, int a2, int a3, int a4)
{
_DWORD *v4; // lr
_BOOL4 v6; // r1
v4 = (_DWORD *)a1[5];
switch ( a2 )
{
case 6:
v6 = a4 == 0;
if ( a3 <= 0 )
v6 = 0;
return a3 >= -1 && !v6 && ASN1_OCTET_STRING_set(v4 + 1, a4, a3) != 0;
case 7:
return HMAC_Init_ex(v4[5], *(_DWORD *)(*(_DWORD *)(a1[2] + 20) + 8), **(_DWORD **)(a1[2] + 20), *v4, a1[1]) != 0;
case 1:
*v4 = a4;
return 1;
default:
return -2;
}
}