//
// PKCS7_set_content from 0x104c8bc to 0x104c95c (160 bytes)
//
// 2 xrefs:
// > PKCS7_content_new @ 0x104cb88
// > ??> @ 0xaf678
//
// 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_content(__int64 a1, __int64 a2)
{
int v4; // w0
v4 = OBJ_obj2nid(*(_QWORD *)(a1 + 24));
if ( v4 == 22 )
{
PKCS7_free(*(_QWORD *)(*(_QWORD *)(a1 + 32) + 40LL));
*(_QWORD *)(*(_QWORD *)(a1 + 32) + 40LL) = a2;
return 1;
}
else if ( v4 == 25 )
{
PKCS7_free(*(_QWORD *)(*(_QWORD *)(a1 + 32) + 16LL));
*(_QWORD *)(*(_QWORD *)(a1 + 32) + 16LL) = a2;
return 1;
}
else
{
ERR_put_error(33, 109, 112, (__int64)"crypto/pkcs7/pk7_lib.c", 99);
return 0;
}
}