//
// SSL_CTX_has_client_custom_ext from 0x9c1f18 to 0x9c1f6c (84 bytes)
//
// 3 xrefs:
// > SSL_set_ct_validation_callback @ 0x9af51c
// > SSL_CTX_set_ct_validation_callback @ 0x9afe18
// > ??> @ 0x760cc
//
// 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:04 +0000
//
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;
}