//
// BN_num_bits_word from 0x9e8a0c to 0x9e8a70 (100 bytes)
//
// 8 xrefs:
// > sub_9DF5B4 @ 0x9df5f8
// > BN_num_bits @ 0x9e9234
// > BN_mul @ 0x9ebbc8
// > BN_mul @ 0x9ebd34
// > BN_sqr @ 0x9ed2e0
// > BN_div_word @ 0x9ed420
// > BN_GF2m_mod_inv @ 0xadf160
// > ??> @ 0x78c6c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:25 +0000
//
int __fastcall BN_num_bits_word(unsigned int a1)
{
if ( HIWORD(a1) )
{
if ( (a1 & 0xFF000000) != 0 )
return byte_C52B68[HIBYTE(a1)] + 24;
else
return byte_C52B68[HIWORD(a1)] + 16;
}
else if ( (a1 & 0xFF00) != 0 )
{
return byte_C52B68[a1 >> 8] + 8;
}
else
{
return byte_C52B68[a1];
}
}