//
// ssl3_release_write_buffer from 0x99f3ec to 0x99f448 (92 bytes)
//
// 4 xrefs:
// > RECORD_LAYER_release @ 0x99cf9c
// > ssl3_write_bytes @ 0x99e1f0
// > ssl3_write_bytes @ 0x99e230
// > ??> @ 0x7426c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:47 +0000
//
int __fastcall ssl3_release_write_buffer(int a1)
{
int v1; // r5
int v3; // r4
v1 = *(_DWORD *)(a1 + 572);
if ( v1 )
{
v3 = a1 + 20 * v1;
do
{
--v1;
CRYPTO_free(*(_DWORD *)(v3 + 576), "ssl/record/ssl3_buffer.c", 143);
*(_DWORD *)(v3 + 576) = 0;
v3 -= 20;
}
while ( v1 );
}
*(_DWORD *)(a1 + 572) = 0;
return 1;
}