//
// BN_num_bits_word from 0x7d3e0c to 0x7d3e70 (100 bytes)
//
// 8 xrefs:
// > sub_7CA9B4 @ 0x7ca9f8
// > BN_num_bits @ 0x7d4634
// > BN_mul @ 0x7d6fc8
// > BN_mul @ 0x7d7134
// > BN_sqr @ 0x7d86e0
// > BN_div_word @ 0x7d8820
// > BN_GF2m_mod_inv @ 0x8ca160
// > ??> @ 0x5f1ec
//
// 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 BN_num_bits_word(unsigned int a1)
{
if ( HIWORD(a1) )
{
if ( (a1 & 0xFF000000) != 0 )
return byte_A0DE98[HIBYTE(a1)] + 24;
else
return byte_A0DE98[HIWORD(a1)] + 16;
}
else if ( (a1 & 0xFF00) != 0 )
{
return byte_A0DE98[a1 >> 8] + 8;
}
else
{
return byte_A0DE98[a1];
}
}