//
// EVP_PKEY_CTX_get_keygen_info from 0x102bf6c to 0x102bfa8 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0x65788
//
// 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:16:17 +0000
//
__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;
}