//
// PKCS7_set_cipher from 0x104d538 to 0x104d610 (216 bytes)
//
// 1 xrefs:
// > ??> @ 0x75b68
//
// 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:37 +0000
//
__int64 __fastcall PKCS7_set_cipher(__int64 a1, unsigned int *a2)
{
int v4; // w0
__int64 v5; // x21
unsigned int v6; // w19
v4 = OBJ_obj2nid(*(_QWORD *)(a1 + 24));
if ( v4 == 23 )
{
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 16LL);
v6 = EVP_CIPHER_type(a2);
if ( v6 )
goto LABEL_4;
}
else
{
if ( v4 != 24 )
{
ERR_put_error(33, 108, 113, (__int64)"crypto/pkcs7/pk7_lib.c", 532);
return 0;
}
v5 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 40LL);
v6 = EVP_CIPHER_type(a2);
if ( v6 )
{
LABEL_4:
*(_QWORD *)(v5 + 24) = a2;
return 1;
}
}
ERR_put_error(33, 108, 144, (__int64)"crypto/pkcs7/pk7_lib.c", 540);
return v6;
}