//
// sub_10DBBE4 from 0x10dbbe4 to 0x10dbc88 (164 bytes)
//
// 8 xrefs:
// > sub_10DBC88 @ 0x10dbe34
// > sub_10DBC88 @ 0x10dbe3c
// > sub_10DBC88 @ 0x10dbe80
// > sub_10DBC88 @ 0x10dbe88
// > sub_10DBC88 @ 0x10dbf3c
// > sub_10DBC88 @ 0x10dbf44
// > sub_10DBC88 @ 0x10dbf90
// > sub_10DBC88 @ 0x10dbf98
//
// 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:17:45 +0000
//
__int64 __fastcall sub_10DBBE4(__int64 a1, const void *a2)
{
void *cipher_data; // x20
int v5; // w0
__int64 v6; // x20
__int64 v7; // x0
int v9; // [xsp+38h] [xbp+38h]
fwrite("(TEST_ENG_OPENSSL_RC4) test_init_key() called\n", 1u, 0x2Eu, (FILE *)((char *)&_sF + 304));
cipher_data = (void *)EVP_CIPHER_CTX_get_cipher_data(a1);
v5 = EVP_CIPHER_CTX_key_length(a1);
memcpy(cipher_data, a2, v5);
v6 = EVP_CIPHER_CTX_get_cipher_data(a1);
v9 = EVP_CIPHER_CTX_key_length(a1);
v7 = EVP_CIPHER_CTX_get_cipher_data(a1);
RC4_set_key((_BYTE *)(v6 + 16), v9, v7);
return 1;
}