//
// EVP_CIPHER_type from 0x10289fc to 0x1028b54 (344 bytes)
//
// 12 xrefs:
// > sub_1004D54 @ 0x1004f0c
// > sub_1004D54 @ 0x1005490
// > sub_1009820 @ 0x1009b68
// > PKCS7_dataInit @ 0x104aa10
// > PKCS7_set_cipher @ 0x104d574
// > PKCS7_set_cipher @ 0x104d5d4
// > cms_RecipientInfo_kari_encrypt @ 0x109d8a8
// > CMS_add0_recipient_password @ 0x109ed1c
// > PKCS5_pbe2_set_iv @ 0x10f0b9c
// > PKCS5_pbe2_set_scrypt @ 0x10f0e78
// > cms_EncryptedContent_init_bio @ 0x10f914c
// > ??> @ 0x8db20
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:15 +0000
//
__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;
}