//
// EVP_PBE_alg_add_type from 0x10df924 to 0x10dfa38 (276 bytes)
//
// 3 xrefs:
// > EVP_PBE_alg_add @ 0x10dfa94
// > EVP_PBE_alg_add @ 0x10dfabc
// > ??> @ 0x49678
//
// 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:17:48 +0000
//
__int64 __fastcall EVP_PBE_alg_add_type(unsigned int a1, unsigned int a2, unsigned int a3, unsigned int a4, __int64 a5)
{
_QWORD *v10; // x0
_QWORD *v11; // x19
__int64 v12; // x1
int *v13; // x0
__int128 v15; // [xsp+60h] [xbp+60h]
if ( qword_1568720 || (qword_1568720 = (__int64)OPENSSL_sk_new((__int64)sub_10DF8EC)) != 0 )
{
v10 = CRYPTO_malloc(&off_18, (__int64)"crypto/evp/evp_pbe.c", 167);
v11 = v10;
if ( v10 )
{
*(_QWORD *)&v15 = __PAIR64__(a2, a1);
v12 = (__int64)v10;
*((_QWORD *)&v15 + 1) = __PAIR64__(a4, a3);
v13 = (int *)qword_1568720;
v11[2] = a5;
*(_OWORD *)v11 = v15;
if ( (unsigned int)OPENSSL_sk_push(v13, v12) )
return 1;
CRYPTO_free(v11, (__int64)"crypto/evp/evp_pbe.c", 177);
}
}
ERR_put_error(6, 160, 65, (__int64)"crypto/evp/evp_pbe.c", 183);
return 0;
}