//
// DSA_size from 0x7e213c to 0x7e2198 (92 bytes)
//
// 2 xrefs:
// > sub_7E1024 @ 0x7e1028
// > ??> @ 0x60d3c
//
// 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 DSA_size(int a1)
{
int v1; // r0
int v2; // r3
int v3; // r0
char v5; // [sp+4h] [bp-18h] BYREF
size_t v6[5]; // [sp+8h] [bp-14h] BYREF
v1 = BN_num_bits(*(_DWORD **)(a1 + 12));
v6[1] = 2;
v5 = -1;
v2 = v1 + 7;
if ( v1 + 7 < 0 )
v2 = v1 + 14;
v6[0] = v2 >> 3;
v6[2] = (size_t)&v5;
v3 = i2d_ASN1_INTEGER(v6, nullptr);
return ASN1_object_size(1, 2 * v3, 16);
}