//
// EVP_PKEY_CTX_get_keygen_info from 0xdadc0c to 0xdadc48 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0x479e8
//
// 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
//
__int64 __fastcall EVP_PKEY_CTX_get_keygen_info(__int64 a1, int a2)
{
int v3; // w3
__int64 result; // x0
if ( a2 == -1 )
return *(unsigned int *)(a1 + 72);
if ( a2 < 0 )
return 0;
v3 = *(_DWORD *)(a1 + 72);
result = 0;
if ( a2 <= v3 )
return *(unsigned int *)(*(_QWORD *)(a1 + 64) + 4LL * a2);
return result;
}