//
// EVP_CIPHER_type from 0xdaa69c to 0xdaa7f4 (344 bytes)
//
// 12 xrefs:
// > sub_D869F4 @ 0xd86bac
// > sub_D869F4 @ 0xd87130
// > sub_D8B4C0 @ 0xd8b808
// > PKCS7_dataInit @ 0xdcc6b0
// > PKCS7_set_cipher @ 0xdcf214
// > PKCS7_set_cipher @ 0xdcf274
// > cms_RecipientInfo_kari_encrypt @ 0xe1f5a8
// > CMS_add0_recipient_password @ 0xe20a1c
// > PKCS5_pbe2_set_iv @ 0xe72b9c
// > PKCS5_pbe2_set_scrypt @ 0xe72e78
// > cms_EncryptedContent_init_bio @ 0xe7b14c
// > ??> @ 0x68940
//
// 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_CIPHER_type(unsigned int *a1)
{
int v1; // w0
unsigned int v2; // w19
__int64 v4; // x20
v1 = EVP_CIPHER_nid(a1);
v2 = v1;
if ( v1 == 429 )
return 429;
if ( v1 > 429 )
{
if ( v1 == 654 )
return 425;
if ( v1 <= 654 )
{
if ( v1 == 651 )
return 425;
if ( v1 <= 651 )
{
if ( v1 == 650 )
return 421;
goto LABEL_25;
}
if ( v1 != 652 )
return 421;
}
else
{
if ( v1 > 657 )
{
if ( v1 <= 659 )
return 30;
goto LABEL_25;
}
if ( v1 >= 656 )
return 30;
}
return 429;
}
if ( v1 == 97 )
return 5;
if ( v1 > 97 )
{
if ( v1 == 166 )
return 37;
if ( v1 <= 166 )
{
if ( v1 == 98 )
return 37;
goto LABEL_25;
}
if ( v1 != 421 )
{
if ( v1 != 425 )
goto LABEL_25;
return 425;
}
return 421;
}
if ( v1 == 30 )
return 30;
if ( v1 > 30 )
{
if ( v1 != 37 )
{
if ( v1 == 61 )
return 30;
goto LABEL_25;
}
return 37;
}
if ( v1 == 5 )
return 5;
LABEL_25:
v4 = OBJ_nid2obj((unsigned int)v1);
if ( !OBJ_get0_data() )
v2 = 0;
ASN1_OBJECT_free(v4);
return v2;
}