//
// sub_9D0C78 from 0x9d0c78 to 0x9d0da8 (304 bytes)
//
// 1 xrefs:
// > ??> @ 0xc774c0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:11 +0000
//
int __fastcall sub_9D0C78(_DWORD *a1, const char *a2)
{
int **v2; // r3
int *v3; // r5
int v4; // r6
int v6; // r0
char *v8; // r1
int v9; // r3
v2 = (int **)a1[3];
v3 = (int *)a1[15];
if ( !v2 )
{
v9 = a1[4];
if ( !v9 )
return 0;
v2 = *(int ***)(v9 + 276);
}
v4 = **v2;
v6 = strcmp("None", a2);
if ( v6 )
{
if ( !strcmp("SSLv3", a2) )
{
v6 = 1;
}
else if ( !strcmp("TLSv1", a2) )
{
v6 = 2;
}
else if ( !strcmp("TLSv1.1", a2) )
{
v6 = 3;
}
else if ( !strcmp("TLSv1.2", a2) )
{
v6 = 4;
}
else if ( !strcmp("DTLSv1", a2) )
{
v6 = 5;
}
else
{
if ( strcmp("DTLSv1.2", a2) )
return 0;
v6 = 6;
}
}
v8 = (&off_C77220)[2 * v6 + 225];
if ( (int)v8 < 0 )
return 0;
return ssl_set_version_bound(v4, (int)v8, v3);
}