//
// X509_NAME_hash from 0xa53544 to 0xa535b0 (108 bytes)
//
// 5 xrefs:
// > j_X509_NAME_hash @ 0x9a56e0
// > sub_A50C74 @ 0xa50d1c
// > X509_issuer_name_hash @ 0xa535b4
// > X509_subject_name_hash @ 0xa535bc
// > ??> @ 0x74b8c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:24 +0000
//
int __fastcall X509_NAME_hash(int a1)
{
int v2; // r5
int v3; // r4
void *v4; // r0
int result; // r0
_BYTE v6[24]; // [sp+Ch] [bp-18h] BYREF
i2d_X509_NAME(a1, 0);
v2 = *(_DWORD *)(a1 + 12);
v3 = *(_DWORD *)(a1 + 16);
v4 = EVP_sha1();
result = EVP_Digest(v2, v3, (int)v6, nullptr, (int)v4, nullptr);
if ( result )
return (v6[2] << 16) | (v6[1] << 8) | v6[0] | (v6[3] << 24);
return result;
}