//
// sub_1050468 from 0x1050468 to 0x1050514 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x140dc80
//
// 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:38 +0000
//
__int64 __fastcall sub_1050468(__int64 a1, __int64 a2)
{
__int64 v3; // x0
int v4; // w0
char **v5; // x0
__int64 v7; // [xsp+28h] [xbp+28h]
void *v8; // [xsp+38h] [xbp+38h] BYREF
v3 = *(_QWORD *)(a2 + 32);
v8 = nullptr;
v4 = i2d_RSAPublicKey(v3, &v8);
v7 = (unsigned int)v4;
if ( v4 <= 0 )
return 0;
v5 = OBJ_nid2obj(6u);
if ( (unsigned int)X509_PUBKEY_set0_param(a1, v5, 5, 0, v8, v7) )
return 1;
CRYPTO_free(v8, (__int64)"crypto/rsa/rsa_ameth.c", 38);
return 0;
}