//
// RECORD_LAYER_set_data from 0xd31bac to 0xd31c14 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x521e8
//
// 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
//
__int64 __fastcall RECORD_LAYER_set_data(__int64 a1, __int64 a2, int a3)
{
__int64 v4; // x0
__int64 result; // x0
*(_DWORD *)(a1 + 3392) = a3;
v4 = *(_QWORD *)(a1 + 24);
if ( !a3 )
goto LABEL_3;
*(_DWORD *)(a1 + 12) = 240;
if ( v4 )
goto LABEL_3;
result = ssl3_setup_read_buffer(*(_QWORD *)a1);
if ( (_DWORD)result )
{
v4 = *(_QWORD *)(a1 + 24);
LABEL_3:
*(_QWORD *)(a1 + 3384) = v4;
SSL3_BUFFER_set_data(a1 + 24);
return 1;
}
return result;
}