//
// ossl_statem_client_max_message_size from 0xfc6fc0 to 0xfc7048 (136 bytes)
//
// 4 xrefs:
// > sub_FC5998 @ 0xfc5d5c
// > ??> @ 0x84da8
// > sub_FC5998 @ 0xfc5c98
// > ??> @ 0x1543798
//
// 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:24 +0000
//
__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;
}
}