//
// bn_wexpand from 0x9e99f0 to 0x9e9a00 (16 bytes)
//
// 49 xrefs:
// > BN_copy @ 0x9e9a18
// > BN_set_bit @ 0x9e9b90
// > BN_bin2bn @ 0x9e9c94
// > BN_lebin2bn @ 0x9e9d7c
// > sub_9E9EC4 @ 0x9e9f00
// > sub_9E9EC4 @ 0x9e9fa0
// > BN_mod_mul_montgomery @ 0x9ea1e0
// > BN_mul @ 0x9ebc10
// > BN_mul @ 0x9ebc28
// > BN_mul @ 0x9ebc6c
// > BN_mul @ 0x9ebcf0
// > BN_mul @ 0x9ebd08
// > BN_mul @ 0x9ebd78
// > BN_lshift1 @ 0x9ecb80
// > BN_lshift1 @ 0x9ecc00
// > BN_rshift1 @ 0x9ecc5c
// > BN_lshift @ 0x9ecd0c
// > BN_rshift @ 0x9ece80
// > BN_sqr @ 0x9ed260
// > BN_sqr @ 0x9ed2fc
// > BN_sqr @ 0x9ed324
// > BN_add_word @ 0x9ed638
// > BN_mul_word @ 0x9ed6fc
// > BN_uadd @ 0xa7eb18
// > BN_usub @ 0xa7ebd4
// > BN_sub @ 0xa7eda0
// > BN_div @ 0xa811a8
// > BN_div @ 0xa811d8
// > BN_div @ 0xa81530
// > BN_div @ 0xa815a0
// > sub_A81618 @ 0xa81634
// > BN_mod_exp_mont @ 0xa8293c
// > bn_set_words @ 0xa84ae0
// > ec_GF2m_simple_group_set_curve @ 0xa9e6bc
// > ec_GF2m_simple_group_set_curve @ 0xa9e6fc
// > ec_GF2m_simple_group_copy @ 0xa9e940
// > ec_GF2m_simple_group_copy @ 0xa9e960
// > BN_GF2m_add @ 0xade1ac
// > BN_GF2m_mod_arr @ 0xade27c
// > BN_GF2m_mod_sqr_arr @ 0xade500
// > BN_GF2m_mod_mul_arr @ 0xade65c
// > BN_GF2m_mod_inv @ 0xadef64
// > BN_GF2m_mod_inv @ 0xadefa4
// > BN_GF2m_mod_inv @ 0xadeff8
// > sub_AE6010 @ 0xae60dc
// > sub_AE6010 @ 0xae60f0
// > sub_AE6010 @ 0xae6104
// > sub_AE6010 @ 0xae6118
// > ??> @ 0x7970c
//
// 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_wexpand(int result, int a2)
{
if ( *(_DWORD *)(result + 8) < a2 )
return bn_expand2(result, a2);
return result;
}