//
// DH_size from 0xd88020 to 0xd88048 (40 bytes)
//
// 4 xrefs:
// > sub_D859B0 @ 0xd859b4
// > sub_E29D70 @ 0xe29e14
// > sub_E29D70 @ 0xe29f20
// > ??> @ 0x57900
//
// 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 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);
}