//
// sub_1004084 from 0x1004084 to 0x10040a4 (32 bytes)
//
// 2 xrefs:
// > ??> @ 0x13ffc50
// > ??> @ 0x13ffd28
//
// 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:15:55 +0000
//
__int64 __fastcall sub_1004084(__int64 a1, __int64 a2)
{
void *v2; // x3
__int64 v3; // x0
v2 = *(void **)(a1 + 16);
v3 = *(_QWORD *)(a1 + 32);
if ( v2 == &dhx_asn1_meth )
return i2d_DHxparams(v3, a2);
else
return i2d_DHparams(v3, a2);
}