//
// SSL_CTX_has_client_custom_ext from 0xfd2d0c to 0xfd2d5c (80 bytes)
//
// 3 xrefs:
// > SSL_set_ct_validation_callback @ 0xfc1728
// > SSL_CTX_set_ct_validation_callback @ 0xfc1f58
// > ??> @ 0xfaea0
//
// 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:30 +0000
//
__int64 __fastcall SSL_CTX_has_client_custom_ext(__int64 a1, int a2)
{
__int64 v2; // x2
__int64 result; // x0
unsigned __int16 *v4; // x2
__int64 v5; // x3
v2 = *(_QWORD *)(a1 + 288);
result = *(_QWORD *)(v2 + 416);
v4 = *(unsigned __int16 **)(v2 + 408);
if ( result )
{
if ( a2 == *v4 )
{
return 1;
}
else
{
v5 = 0;
while ( 1 )
{
++v5;
v4 += 24;
if ( v5 == result )
break;
if ( a2 == *v4 )
return 1;
}
return 0;
}
}
return result;
}