//
// DH_size from 0x1006380 to 0x10063a8 (40 bytes)
//
// 4 xrefs:
// > sub_1003D10 @ 0x1003d14
// > sub_10A8070 @ 0x10a8114
// > sub_10A8070 @ 0x10a8220
// > ??> @ 0x78c70
//
// 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:56 +0000
//
__int64 __fastcall DH_size(__int64 a1)
{
int v1; // w0
int v2; // w1
int v3; // w0
v1 = BN_num_bits(*(_QWORD *)(a1 + 8));
v2 = v1 + 14;
v3 = v1 + 7;
if ( v3 < 0 )
v3 = v2;
return (unsigned int)(v3 >> 3);
}