//
// bn_wexpand from 0xff9320 to 0xff9334 (20 bytes)
//
// 49 xrefs:
// > BN_copy @ 0xff9354
// > BN_set_bit @ 0xff9568
// > BN_bin2bn @ 0xff9674
// > BN_lebin2bn @ 0xff97a8
// > sub_FF9954 @ 0xff99b8
// > sub_FF9954 @ 0xff9a5c
// > BN_mod_mul_montgomery @ 0xff9ecc
// > BN_mul @ 0xffb8b8
// > BN_mul @ 0xffb8cc
// > BN_mul @ 0xffb904
// > BN_mul @ 0xffb9ac
// > BN_mul @ 0xffb9c0
// > BN_mul @ 0xffba18
// > BN_lshift1 @ 0xffcc3c
// > BN_lshift1 @ 0xffcccc
// > BN_rshift1 @ 0xffcd3c
// > BN_lshift @ 0xffce40
// > BN_rshift @ 0xffd0b0
// > BN_sqr @ 0xffd634
// > BN_sqr @ 0xffd6d0
// > BN_sqr @ 0xffd6f4
// > BN_add_word @ 0xffdaac
// > BN_mul_word @ 0xffdb74
// > BN_uadd @ 0x1091130
// > BN_usub @ 0x109120c
// > BN_sub @ 0x109143c
// > BN_div @ 0x10940d4
// > BN_div @ 0x109411c
// > BN_div @ 0x1094328
// > BN_div @ 0x1094384
// > sub_1094410 @ 0x109443c
// > BN_mod_exp_mont @ 0x1095748
// > bn_set_words @ 0x10976f4
// > ec_GF2m_simple_group_set_curve @ 0x10b1654
// > ec_GF2m_simple_group_set_curve @ 0x10b1690
// > ec_GF2m_simple_group_copy @ 0x10b18e8
// > ec_GF2m_simple_group_copy @ 0x10b1908
// > BN_GF2m_add @ 0x10f2960
// > BN_GF2m_mod_arr @ 0x10f2bc0
// > BN_GF2m_mod_sqr_arr @ 0x10f2efc
// > BN_GF2m_mod_mul_arr @ 0x10f30fc
// > BN_GF2m_mod_inv @ 0x10f4260
// > BN_GF2m_mod_inv @ 0x10f42c4
// > BN_GF2m_mod_inv @ 0x10f4324
// > sub_10FAC48 @ 0x10fad4c
// > sub_10FAC48 @ 0x10fad60
// > sub_10FAC48 @ 0x10fad74
// > sub_10FAC48 @ 0x10fad88
// > ??> @ 0xb6e90
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:50 +0000
//
unsigned __int64 *__fastcall bn_wexpand(unsigned __int64 *a1, int a2)
{
if ( *((_DWORD *)a1 + 3) < a2 )
return bn_expand2(a1, a2);
return a1;
}