//
// SSL_CONF_cmd_value_type from 0xfe1290 to 0xfe1384 (244 bytes)
//
// 1 xrefs:
// > ??> @ 0x523c0
//
// 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:37 +0000
//
__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_FE03AC((int *)a1, v2);
if ( v9 )
return *((unsigned __int16 *)v9 + 13);
else
return 0;
}
return 0;
}