//
// RSA_size from 0x1051c2c to 0x1051c54 (40 bytes)
//
// 15 xrefs:
// > tls_process_client_key_exchange @ 0xfd0dfc
// > tls_process_client_key_exchange @ 0xfd0e14
// > sub_10502A4 @ 0x10502a8
// > sub_1054CAC @ 0x1054d28
// > sub_1055164 @ 0x1055210
// > RSA_verify_PKCS1_PSS_mgf1 @ 0x10555b4
// > RSA_padding_add_PKCS1_PSS_mgf1 @ 0x1055db0
// > RSA_padding_add_PKCS1_PSS_mgf1 @ 0x1055e8c
// > RSA_padding_add_PKCS1_PSS_mgf1 @ 0x1055f4c
// > RSA_sign_ASN1_OCTET_STRING @ 0x1056524
// > RSA_verify_ASN1_OCTET_STRING @ 0x1056660
// > RSA_sign @ 0x1056890
// > RSA_sign @ 0x1056908
// > int_rsa_verify @ 0x1056a08
// > ??> @ 0xc3be0
//
// 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:39 +0000
//
__int64 __fastcall RSA_size(__int64 a1)
{
int v1; // w0
int v2; // w1
int v3; // w0
v1 = BN_num_bits(*(_QWORD *)(a1 + 32));
v2 = v1 + 14;
v3 = v1 + 7;
if ( v3 < 0 )
v3 = v2;
return (unsigned int)(v3 >> 3);
}