//
// DSA_set0_key from 0xd89d3c to 0xd89da8 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x2b728
//
// 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 DSA_set0_key(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // x0
v4 = *(_QWORD *)(a1 + 40);
if ( v4 )
{
if ( !a2 )
goto LABEL_4;
}
else if ( !a2 )
{
return 0;
}
BN_free(v4);
*(_QWORD *)(a1 + 40) = a2;
LABEL_4:
if ( !a3 )
return 1;
BN_free(*(_QWORD *)(a1 + 48));
*(_QWORD *)(a1 + 48) = a3;
return 1;
}