//
// tls1_clear from 0x7ae07c to 0x7ae0a4 (40 bytes)
//
// 13 xrefs:
// > ??> @ 0x5a21c
// > ??> @ 0xab0e9c
// > ??> @ 0xab0f10
// > ??> @ 0xab0f84
// > ??> @ 0xab0ff8
// > ??> @ 0xab106c
// > ??> @ 0xab10e0
// > ??> @ 0xab1154
// > ??> @ 0xab11c8
// > ??> @ 0xab123c
// > ??> @ 0xab12b0
// > ??> @ 0xab1324
// > ??> @ 0xab1398
//
// 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
//
int __fastcall tls1_clear(int a1)
{
int result; // r0
int v3; // r3
result = ssl3_clear(a1);
v3 = **(_DWORD **)(a1 + 4);
if ( v3 == 0x10000 )
v3 = 771;
*(_DWORD *)a1 = v3;
return result;
}