//
// sub_D36348 from 0xd36348 to 0xd363dc (148 bytes)
//
// 2 xrefs:
// > ssl3_cbc_digest_record @ 0xd3770c
// > ssl3_cbc_digest_record @ 0xd37734
//
// 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 sub_D36348(__int64 a1, __int64 a2)
{
__int64 result; // x0
*(_WORD *)a2 = *(_DWORD *)a1;
*(_BYTE *)(a2 + 2) = *(_WORD *)(a1 + 2);
*(_BYTE *)(a2 + 3) = *(_BYTE *)(a1 + 3);
*(_WORD *)(a2 + 4) = *(_DWORD *)(a1 + 4);
*(_BYTE *)(a2 + 6) = *(_WORD *)(a1 + 6);
*(_BYTE *)(a2 + 7) = *(_BYTE *)(a1 + 7);
*(_WORD *)(a2 + 8) = *(_DWORD *)(a1 + 8);
*(_BYTE *)(a2 + 10) = *(_WORD *)(a1 + 10);
*(_BYTE *)(a2 + 11) = *(_BYTE *)(a1 + 11);
*(_WORD *)(a2 + 12) = *(_DWORD *)(a1 + 12);
*(_BYTE *)(a2 + 14) = *(_WORD *)(a1 + 14);
result = *(unsigned __int8 *)(a1 + 15);
*(_BYTE *)(a2 + 15) = result;
return result;
}