//
// BN_RECP_CTX_set from 0xe1a930 to 0xe1a978 (72 bytes)
//
// 3 xrefs:
// > sub_E162E0 @ 0xe163b0
// > sub_E162E0 @ 0xe165a8
// > ??> @ 0xadf70
//
// 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_RECP_CTX_set(__int64 a1, __int64 a2)
{
unsigned __int64 *result; // x0
int v5; // w0
result = BN_copy((unsigned __int64 *)a1, a2);
if ( result )
{
BN_set_word(a1 + 24, 0);
v5 = BN_num_bits(a2);
*(_DWORD *)(a1 + 52) = 0;
*(_DWORD *)(a1 + 48) = v5;
return (_QWORD *)(dword_0 + 1);
}
return result;
}