//
// BN_mod_lshift from 0x1097e6c to 0x1097f08 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0x96790
//
// 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
//
__int64 __fastcall BN_mod_lshift(unsigned __int64 *a1, __int64 a2, int a3, __int64 a4, int32x2_t *a5)
{
__int64 *v8; // x3
__int64 v9; // x21
unsigned int v10; // w19
unsigned __int64 *v12; // x0
if ( (unsigned int)BN_nnmod((__int64)a1, a2, a4, a5) )
{
if ( !*(_DWORD *)(a4 + 16) )
{
v8 = (__int64 *)a4;
v9 = 0;
LABEL_4:
v10 = BN_mod_lshift_quick(a1, (__int64)a1, a3, v8);
BN_free(v9);
return v10;
}
v12 = BN_dup(a4);
v9 = (__int64)v12;
if ( v12 )
{
*((_DWORD *)v12 + 4) = 0;
v8 = (__int64 *)v12;
goto LABEL_4;
}
}
return 0;
}