//
// sub_DC1004 from 0xdc1004 to 0xdc1090 (140 bytes)
//
// 1 xrefs:
// > OBJ_NAME_init @ 0xdc10c8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_DC1004(const char **a1, __int64 a2)
{
unsigned int v2; // w2
int v5; // w0
__int64 v6; // x1
__int64 v8; // x0
v2 = *(_DWORD *)a1 - *(_DWORD *)a2;
if ( *(_DWORD *)a1 == *(_DWORD *)a2 )
{
if ( !qword_125F180 )
return strcmp(a1[1], *(const char **)(a2 + 8));
v5 = OPENSSL_sk_num(qword_125F180);
v6 = *(unsigned int *)a1;
if ( (int)v6 >= v5 )
return strcmp(a1[1], *(const char **)(a2 + 8));
v8 = OPENSSL_sk_value(qword_125F180, v6);
return (*(unsigned int (__fastcall **)(const char *, _QWORD))(v8 + 8))(a1[1], *(_QWORD *)(a2 + 8));
}
return v2;
}