//
// BN_GENCB_call from 0x10f4d74 to 0x10f4e0c (152 bytes)
//
// 22 xrefs:
// > dsa_builtin_paramgen @ 0x10a8a6c
// > dsa_builtin_paramgen @ 0x10a8df4
// > dsa_builtin_paramgen @ 0x10a8ef8
// > dsa_builtin_paramgen @ 0x10a8f0c
// > dsa_builtin_paramgen @ 0x10a90e4
// > dsa_builtin_paramgen @ 0x10a9118
// > dsa_builtin_paramgen2 @ 0x10a97c4
// > dsa_builtin_paramgen2 @ 0x10a987c
// > dsa_builtin_paramgen2 @ 0x10a9890
// > dsa_builtin_paramgen2 @ 0x10a9a98
// > dsa_builtin_paramgen2 @ 0x10a9b38
// > dsa_builtin_paramgen2 @ 0x10a9c00
// > RSA_generate_key_ex @ 0x10e8ad0
// > RSA_generate_key_ex @ 0x10e8b80
// > RSA_generate_key_ex @ 0x10e8c3c
// > RSA_generate_key_ex @ 0x10e8cd4
// > BN_is_prime_fasttest_ex @ 0x10f4ebc
// > BN_is_prime_fasttest_ex @ 0x10f5144
// > BN_generate_prime_ex @ 0x10f581c
// > BN_generate_prime_ex @ 0x10f58c8
// > DH_generate_parameters_ex @ 0x10fa5cc
// > ??> @ 0x66af0
//
// 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:18:09 +0000
//
__int64 __fastcall BN_GENCB_call(__int64 a1, unsigned int a2, unsigned int a3)
{
void (__fastcall *v4)(_QWORD, _QWORD, _QWORD); // x4
if ( !a1 )
return 1;
if ( *(_DWORD *)a1 == 1 )
{
v4 = *(void (__fastcall **)(_QWORD, _QWORD, _QWORD))(a1 + 16);
if ( v4 )
v4(a2, a3, *(_QWORD *)(a1 + 8));
return 1;
}
else if ( *(_DWORD *)a1 == 2 )
{
return (*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(a1 + 16))(a2, a3, a1);
}
else
{
return 0;
}
}