//
// DSA_set0_pqg from 0x7e23d8 to 0x7e2478 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x60efc
//
// 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
//
int __fastcall DSA_set0_pqg(int *a1, int a2, int a3, int a4)
{
bool v4; // zf
bool v5; // zf
bool v6; // zf
v4 = a2 == 0;
if ( !a2 )
v4 = a1[2] == 0;
if ( v4 )
return 0;
v5 = a3 == 0;
if ( !a3 )
v5 = a1[3] == 0;
if ( v5 )
return 0;
v6 = a4 == 0;
if ( !a4 )
v6 = a1[4] == 0;
if ( v6 )
return 0;
if ( a2 )
{
BN_free(a1[2]);
a1[2] = a2;
}
if ( a3 )
{
BN_free(a1[3]);
a1[3] = a3;
}
if ( a4 )
{
BN_free(a1[4]);
a1[4] = a4;
}
return 1;
}