//
// DSA_size from 0xd899c0 to 0xd89a20 (96 bytes)
//
// 2 xrefs:
// > sub_D888C8 @ 0xd888cc
// > ??> @ 0x753a8
//
// 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
//
__int64 __fastcall DSA_size(__int64 a1)
{
int v1; // w0
int v2; // w2
int v3; // w0
int v4; // w0
char v6; // [xsp+10h] [xbp+10h] BYREF
_DWORD v7[2]; // [xsp+18h] [xbp+18h] BYREF
char *v8; // [xsp+20h] [xbp+20h]
v1 = BN_num_bits(*(_QWORD *)(a1 + 24));
v2 = v1 + 14;
v3 = v1 + 7;
if ( v3 >= 0 )
v2 = v3;
v8 = &v6;
v7[1] = 2;
v7[0] = v2 >> 3;
v6 = -1;
v4 = i2d_ASN1_INTEGER((__int64)v7, nullptr);
return ASN1_object_size(1, 2 * v4, 16);
}