//
// BN_set_params from 0x9e88a0 to 0x9e8968 (200 bytes)
//
// 1 xrefs:
// > ??> @ 0x794cc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:25 +0000
//
int __fastcall BN_set_params(int result, int a2, int a3, int a4)
{
if ( result >= 0 )
{
if ( result >= 31 )
result = 31;
dword_D34084 = result;
dword_D25C58 = 1 << result;
}
if ( a2 >= 0 )
{
if ( a2 >= 31 )
a2 = 31;
result = (int)&dword_D25C58;
dword_D34088 = a2;
dword_D25C5C = 1 << a2;
}
if ( a3 >= 0 )
{
if ( a3 >= 31 )
a3 = 31;
result = 1 << a3;
dword_D3408C = a3;
dword_D25C60 = 1 << a3;
}
if ( a4 >= 0 )
{
if ( a4 >= 31 )
a4 = 31;
dword_D34090 = a4;
dword_D25C64 = 1 << a4;
return (int)&dword_D34084;
}
return result;
}