//
// SSL_CONF_cmd_value_type from 0x7bca6c to 0x7bcb48 (220 bytes)
//
// 1 xrefs:
// > ??> @ 0x5e0cc
//
// 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
//
char **__fastcall SSL_CONF_cmd_value_type(int *a1, char *a2)
{
char *v2; // r4
const char *v3; // r6
size_t v5; // r7
int v6; // r8
char **result; // r0
v2 = a2;
if ( !a2 )
return nullptr;
v3 = (const char *)a1[1];
if ( v3 )
{
v5 = a1[2];
if ( strlen(a2) <= v5 )
return nullptr;
v6 = *a1;
if ( (*a1 & 1) != 0 )
{
if ( strncmp(v2, v3, a1[2]) )
return nullptr;
}
if ( (v6 & 2) != 0 && strncasecmp(v2, v3, v5) )
return nullptr;
v2 += v5;
goto LABEL_9;
}
if ( (*a1 & 1) == 0 )
{
LABEL_9:
result = sub_7BB7E8(a1, v2);
if ( result )
return (char **)*((unsigned __int16 *)result + 7);
return result;
}
if ( *a2 != 45 )
return (char **)a1[1];
result = (char **)(unsigned __int8)a2[1];
if ( a2[1] )
{
v2 = a2 + 1;
goto LABEL_9;
}
return result;
}