//
// EVP_PBE_alg_add from 0x10dfa38 to 0x10dfac0 (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x58e40
//
// 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(unsigned int a1, unsigned int *a2, unsigned int *a3, __int64 a4)
{
unsigned int v7; // w2
unsigned int v8; // w3
unsigned int v9; // w1
__int64 v10; // x4
unsigned int v12; // [xsp+38h] [xbp+38h]
if ( !a2 )
{
v7 = -1;
if ( a3 )
goto LABEL_3;
LABEL_6:
v9 = a1;
v10 = a4;
v8 = -1;
return EVP_PBE_alg_add_type(0, v9, v7, v8, v10);
}
v7 = EVP_CIPHER_nid(a2);
if ( !a3 )
goto LABEL_6;
LABEL_3:
v12 = v7;
v8 = EVP_MD_type(a3);
v7 = v12;
v9 = a1;
v10 = a4;
return EVP_PBE_alg_add_type(0, v9, v7, v8, v10);
}