//
// SSL_get_shared_sigalgs from 0xd5abe8 to 0xd5ac64 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x78f78
//
// 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
//
__int64 __fastcall SSL_get_shared_sigalgs(__int64 a1, int a2, _DWORD *a3, _DWORD *a4, _DWORD *a5, _BYTE *a6, _BYTE *a7)
{
__int64 v7; // x8
__int64 v8; // x7
__int64 v9; // x9
unsigned int v10; // w8
__int64 v11; // x1
__int64 v12; // x8
v7 = *(_QWORD *)(a1 + 328);
v8 = *(_QWORD *)(v7 + 360);
if ( !v8 )
return 0;
v9 = *(_QWORD *)(v7 + 368);
v10 = 0;
if ( a2 < (int)v9 )
{
v11 = 16LL * a2;
v12 = v8 + v11;
if ( a4 )
*a4 = *(_DWORD *)(v8 + v11);
if ( a3 )
*a3 = *(_DWORD *)(v12 + 4);
if ( a5 )
*a5 = *(_DWORD *)(v12 + 8);
if ( a6 )
*a6 = *(_BYTE *)(v12 + 12);
if ( a7 )
*a7 = *(_BYTE *)(v12 + 13);
return *(unsigned int *)(*(_QWORD *)(a1 + 328) + 368LL);
}
return v10;
}