//
// sub_DA6A8C from 0xda6a8c to 0xda6ae0 (84 bytes)
//
// 4 xrefs:
// > ??> @ 0x11248b0
// > ??> @ 0x1124908
// > ??> @ 0x1124960
// > ??> @ 0x11249b8
//
// 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_DA6A8C(__int64 a1, unsigned __int64 a2)
{
__int64 cipher_data; // x19
cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1);
*(_QWORD *)(cipher_data + 384) = 0;
DES_set_key_unchecked(a2, (_DWORD *)cipher_data);
DES_set_key_unchecked(a2 + 8, (_DWORD *)(cipher_data + 128));
memcpy((void *)(cipher_data + 256), (const void *)cipher_data, 0x80u);
return 1;
}