//
// DSA_size from 0x1007d20 to 0x1007d80 (96 bytes)
//
// 2 xrefs:
// > sub_1006C28 @ 0x1006c2c
// > ??> @ 0x9d360
//
// 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:15:57 +0000
//
__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);
}