//
// SSL_CTX_has_client_custom_ext from 0x7ad314 to 0x7ad368 (84 bytes)
//
// 3 xrefs:
// > SSL_set_ct_validation_callback @ 0x79a918
// > SSL_CTX_set_ct_validation_callback @ 0x79b214
// > ??> @ 0x5c64c
//
// 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
//
int __fastcall SSL_CTX_has_client_custom_ext(int a1, int a2)
{
int v2; // r3
int result; // r0
unsigned __int16 *v4; // r3
int v5; // r2
v2 = *(_DWORD *)(a1 + 176);
result = *(_DWORD *)(v2 + 212);
v4 = *(unsigned __int16 **)(v2 + 208);
if ( result )
{
if ( a2 == *v4 )
{
return 1;
}
else
{
v5 = 0;
while ( 1 )
{
++v5;
v4 += 14;
if ( v5 == result )
break;
if ( a2 == *v4 )
return 1;
}
return 0;
}
}
return result;
}