//
// sub_A449E4 from 0xa449e4 to 0xa44b00 (284 bytes)
//
// 2 xrefs:
// > sub_A44B1C @ 0xa44c00
// > sub_A44B1C @ 0xa44c48
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:15 +0000
//
int __fastcall sub_A449E4(int a1, int a2)
{
int v3; // r0
if ( !a1 )
return 1;
v3 = EVP_MD_type(a1);
if ( a2 == 3 )
{
ERR_put_error(4, 140, 141, (int)"crypto/rsa/rsa_pmeth.c", 335);
return 0;
}
else
{
if ( a2 != 5 )
{
if ( v3 != 114 )
{
if ( v3 <= 114 )
{
if ( v3 != 64 )
{
if ( v3 > 64 )
{
if ( v3 != 95 )
goto LABEL_9;
}
else if ( (unsigned int)(v3 - 3) > 1 )
{
goto LABEL_9;
}
}
}
else if ( v3 != 257 )
{
if ( v3 > 257 )
{
if ( (unsigned int)(v3 - 672) > 3 )
goto LABEL_9;
}
else if ( v3 != 117 )
{
LABEL_9:
ERR_put_error(4, 140, 157, (int)"crypto/rsa/rsa_pmeth.c", 361);
return 0;
}
}
}
return 1;
}
if ( RSA_X931_hash_id(v3) != -1 )
return 1;
ERR_put_error(4, 140, 142, (int)"crypto/rsa/rsa_pmeth.c", 341);
return 0;
}
}