//
// SSL_set_ssl_method from 0xfc00a8 to 0xfc0164 (188 bytes)
//
// 3 xrefs:
// > SSL_dup @ 0xfc1eb8
// > SSL_set_session @ 0xfc56dc
// > ??> @ 0xd9f60
//
// 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:20 +0000
//
__int64 __fastcall SSL_set_ssl_method(__int64 a1, __int64 a2)
{
__int64 v2; // x21
__int64 v5; // x22
__int64 (__fastcall *v6)(__int64); // x1
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 8);
if ( v2 == a2 )
return 1;
v5 = *(_QWORD *)(a1 + 48);
if ( *(_DWORD *)v2 == *(_DWORD *)a2 )
{
*(_QWORD *)(a1 + 8) = a2;
result = 1;
}
else
{
(*(void (**)(void))(v2 + 32))();
v6 = *(__int64 (__fastcall **)(__int64))(a2 + 16);
*(_QWORD *)(a1 + 8) = a2;
result = v6(a1);
}
if ( *(_QWORD *)(v2 + 48) == v5 )
{
*(_QWORD *)(a1 + 48) = *(_QWORD *)(a2 + 48);
}
else if ( *(_QWORD *)(v2 + 40) == v5 )
{
*(_QWORD *)(a1 + 48) = *(_QWORD *)(a2 + 40);
}
return result;
}