//
// ossl_statem_client_max_message_size from 0xd48c6c to 0xd48cf4 (136 bytes)
//
// 4 xrefs:
// > sub_D47644 @ 0xd47a08
// > ??> @ 0x61530
// > sub_D47644 @ 0xd47944
// > ??> @ 0x122b248
//
// 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 ossl_statem_client_max_message_size(__int64 a1)
{
__int64 v1; // x2
v1 = 0;
switch ( *(_DWORD *)(a1 + 92) )
{
case 2:
return 258;
case 3:
return 20000;
case 4:
case 7:
return *(_QWORD *)(a1 + 504);
case 5:
case 9:
return 0x4000;
case 6:
return 102400;
case 8:
return 0;
case 0xA:
v1 = 3;
if ( *(_DWORD *)a1 != 256 )
return 1;
return v1;
case 0xB:
return 64;
default:
return v1;
}
}