//
// ssl3_put_cipher_by_char from 0xfb5fd8 to 0xfb6014 (60 bytes)
//
// 24 xrefs:
// > tls_construct_server_hello @ 0xfcfb9c
// > ??> @ 0xbd460
// > ??> @ 0x1536fd0
// > ??> @ 0x15370b0
// > ??> @ 0x1537190
// > ??> @ 0x1537270
// > ??> @ 0x1537350
// > ??> @ 0x1537430
// > ??> @ 0x1537510
// > ??> @ 0x15375f0
// > ??> @ 0x15376d0
// > ??> @ 0x15377b0
// > ??> @ 0x1537890
// > ??> @ 0x1537970
// > ??> @ 0x1537a50
// > ??> @ 0x1537b30
// > ??> @ 0x1537c10
// > ??> @ 0x1537cf0
// > ??> @ 0x1537dd0
// > ??> @ 0x1537eb0
// > ??> @ 0x1537f90
// > ??> @ 0x1538070
// > ??> @ 0x1538150
// > ??> @ 0x1538230
//
// 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:15 +0000
//
__int64 __fastcall ssl3_put_cipher_by_char(__int64 a1, _BYTE *a2)
{
int v2; // w2
__int64 result; // x0
if ( !a2 )
return 2;
v2 = *(_DWORD *)(a1 + 16);
result = 0;
if ( (v2 & 0xFF000000) == 0x3000000 )
{
a2[1] = v2;
*a2 = BYTE1(v2);
return 2;
}
return result;
}