//
// bn_wexpand from 0xd7afc0 to 0xd7afd4 (20 bytes)
//
// 49 xrefs:
// > BN_copy @ 0xd7aff4
// > BN_set_bit @ 0xd7b208
// > BN_bin2bn @ 0xd7b314
// > BN_lebin2bn @ 0xd7b448
// > sub_D7B5F4 @ 0xd7b658
// > sub_D7B5F4 @ 0xd7b6fc
// > BN_mod_mul_montgomery @ 0xd7bb6c
// > BN_mul @ 0xd7d558
// > BN_mul @ 0xd7d56c
// > BN_mul @ 0xd7d5a4
// > BN_mul @ 0xd7d64c
// > BN_mul @ 0xd7d660
// > BN_mul @ 0xd7d6b8
// > BN_lshift1 @ 0xd7e8dc
// > BN_lshift1 @ 0xd7e96c
// > BN_rshift1 @ 0xd7e9dc
// > BN_lshift @ 0xd7eae0
// > BN_rshift @ 0xd7ed50
// > BN_sqr @ 0xd7f2d4
// > BN_sqr @ 0xd7f370
// > BN_sqr @ 0xd7f394
// > BN_add_word @ 0xd7f74c
// > BN_mul_word @ 0xd7f814
// > BN_uadd @ 0xe12e30
// > BN_usub @ 0xe12f0c
// > BN_sub @ 0xe1313c
// > BN_div @ 0xe15dd4
// > BN_div @ 0xe15e1c
// > BN_div @ 0xe16028
// > BN_div @ 0xe16084
// > sub_E16110 @ 0xe1613c
// > BN_mod_exp_mont @ 0xe17448
// > bn_set_words @ 0xe193f4
// > ec_GF2m_simple_group_set_curve @ 0xe33354
// > ec_GF2m_simple_group_set_curve @ 0xe33390
// > ec_GF2m_simple_group_copy @ 0xe335e8
// > ec_GF2m_simple_group_copy @ 0xe33608
// > BN_GF2m_add @ 0xe74960
// > BN_GF2m_mod_arr @ 0xe74bc0
// > BN_GF2m_mod_sqr_arr @ 0xe74efc
// > BN_GF2m_mod_mul_arr @ 0xe750fc
// > BN_GF2m_mod_inv @ 0xe76260
// > BN_GF2m_mod_inv @ 0xe762c4
// > BN_GF2m_mod_inv @ 0xe76324
// > sub_E7CC48 @ 0xe7cd4c
// > sub_E7CC48 @ 0xe7cd60
// > sub_E7CC48 @ 0xe7cd74
// > sub_E7CC48 @ 0xe7cd88
// > ??> @ 0x89f10
//
// 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
//
unsigned __int64 *__fastcall bn_wexpand(unsigned __int64 *a1, int a2)
{
if ( *((_DWORD *)a1 + 3) < a2 )
return bn_expand2(a1, a2);
return a1;
}