//
// RECORD_LAYER_clear from 0xfaff78 to 0xfb0038 (192 bytes)
//
// 2 xrefs:
// > SSL_clear @ 0xfc1198
// > ??> @ 0x76420
//
// 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:11 +0000
//
__int64 __fastcall RECORD_LAYER_clear(__int64 a1)
{
unsigned int v2; // w20
__int64 v3; // x0
__int64 result; // x0
v2 = 0;
*(_DWORD *)(a1 + 12) = 240;
*(_QWORD *)(a1 + 3384) = 0;
*(_DWORD *)(a1 + 3392) = 0;
*(_DWORD *)(a1 + 3396) = 0;
*(_WORD *)(a1 + 3400) = 0;
*(_DWORD *)(a1 + 3404) = 0;
*(_DWORD *)(a1 + 3408) = 0;
*(_DWORD *)(a1 + 3412) = 0;
*(_DWORD *)(a1 + 3420) = 0;
*(_DWORD *)(a1 + 3424) = 0;
*(_DWORD *)(a1 + 3428) = 0;
*(_QWORD *)(a1 + 3432) = 0;
SSL3_BUFFER_clear(a1 + 24);
if ( *(_DWORD *)(a1 + 20) )
{
do
{
v3 = 32LL * v2++;
SSL3_BUFFER_clear(a1 + v3 + 56);
}
while ( *(_DWORD *)(a1 + 20) > v2 );
}
*(_DWORD *)(a1 + 20) = 0;
*(_DWORD *)(a1 + 16) = 0;
SSL3_RECORD_clear(a1 + 1080, 32);
RECORD_LAYER_reset_read_sequence(a1);
RECORD_LAYER_reset_write_sequence(a1);
result = *(_QWORD *)(a1 + 3464);
if ( result )
return DTLS_RECORD_LAYER_clear(a1);
return result;
}