//
// BN_RECP_CTX_set from 0x1098c30 to 0x1098c78 (72 bytes)
//
// 3 xrefs:
// > sub_10945E0 @ 0x10946b0
// > sub_10945E0 @ 0x10948a8
// > ??> @ 0xe3ad0
//
// 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:17:24 +0000
//
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;
}