//
// EVP_CIPHER_type from 0xa184d0 to 0xa18604 (308 bytes)
//
// 11 xrefs:
// > sub_9F3D50 @ 0x9f3ed8
// > sub_9F3D50 @ 0x9f450c
// > sub_9F8980 @ 0x9f8cb4
// > PKCS7_dataInit @ 0xa3b988
// > PKCS7_set_cipher @ 0xa3e75c
// > cms_RecipientInfo_kari_encrypt @ 0xa89868
// > CMS_add0_recipient_password @ 0xa8ac44
// > PKCS5_pbe2_set_iv @ 0xadc1ec
// > PKCS5_pbe2_set_scrypt @ 0xadc4fc
// > cms_EncryptedContent_init_bio @ 0xae44a4
// > ??> @ 0x7a41c
//
// 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:07:50 +0000
//
int __fastcall EVP_CIPHER_type(int a1)
{
int v1; // r0
int v2; // r4
_DWORD *v4; // r5
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 )
goto LABEL_25;
return 421;
}
if ( v1 != 652 )
return 421;
}
else
{
if ( v1 > 657 )
{
if ( v1 < 660 )
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 = (_DWORD *)OBJ_nid2obj(v1);
if ( !OBJ_get0_data() )
v2 = 0;
ASN1_OBJECT_free(v4);
return v2;
}