//
// sub_D625B0 from 0xd625b0 to 0xd626ec (316 bytes)
//
// 1 xrefs:
// > ??> @ 0x11218e0
//
// 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_D625B0(_QWORD *a1, const char *a2)
{
int **v2; // x3
int *v3; // x20
int v4; // w21
__int64 v7; // x0
__int64 v8; // x0
int v9; // w1
v2 = (int **)a1[3];
v3 = (int *)a1[15];
if ( v2 )
{
v4 = **v2;
}
else
{
v7 = a1[4];
if ( !v7 )
return 0;
v4 = ***(_DWORD ***)(v7 + 440);
}
if ( !strcmp("None", a2) )
{
v8 = 0;
}
else if ( !strcmp("SSLv3", a2) )
{
v8 = 1;
}
else if ( !strcmp("TLSv1", a2) )
{
v8 = 2;
}
else if ( !strcmp("TLSv1.1", a2) )
{
v8 = 3;
}
else if ( !strcmp("TLSv1.2", a2) )
{
v8 = 4;
}
else if ( !strcmp("DTLSv1", a2) )
{
v8 = 5;
}
else
{
if ( strcmp("DTLSv1.2", a2) )
return 0;
v8 = 6;
}
v9 = (int)(&off_1121448)[2 * v8 + 204];
if ( v9 < 0 )
return 0;
return ssl_set_version_bound(v4, v9, v3);
}