//
// SSL_CONF_cmd_value_type from 0xd62f3c to 0xd63030 (244 bytes)
//
// 1 xrefs:
// > ??> @ 0x38628
//
// 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 SSL_CONF_cmd_value_type(__int64 a1, char *a2)
{
char *v2; // x20
const char *v4; // x22
unsigned int v5; // w19
size_t v6; // x0
size_t v7; // x23
int v8; // w24
char **v9; // x0
v2 = a2;
if ( a2 )
{
v4 = *(const char **)(a1 + 8);
if ( v4 )
{
v5 = 0;
v6 = strlen(a2);
v7 = *(_QWORD *)(a1 + 16);
if ( v6 <= v7 )
return v5;
v8 = *(_DWORD *)a1;
if ( (*(_DWORD *)a1 & 1) != 0 )
{
if ( strncmp(v2, v4, *(_QWORD *)(a1 + 16)) )
return v5;
}
if ( (v8 & 2) != 0 )
{
v5 = 0;
if ( strncasecmp(v2, v4, v7) )
return v5;
}
v2 += v7;
}
else if ( (*(_DWORD *)a1 & 1) != 0 )
{
v5 = 0;
if ( *a2 != 45 )
return v5;
v2 = a2 + 1;
if ( !a2[1] )
return v5;
}
v9 = sub_D62058((int *)a1, v2);
if ( v9 )
return *((unsigned __int16 *)v9 + 13);
else
return 0;
}
return 0;
}