//
// sub_792978 from 0x792978 to 0x792a24 (172 bytes)
//
// 9 xrefs:
// > ssl_cipher_get_evp @ 0x793d28
// > ssl_cipher_get_evp @ 0x793d30
// > ??> @ 0x7940e4
// > SSL_COMP_get_compression_methods @ 0x795420
// > SSL_COMP_get_compression_methods @ 0x795428
// > ??> @ 0x795440
// > SSL_COMP_add_compression_method @ 0x7954e8
// > SSL_COMP_add_compression_method @ 0x7954fc
// > ??> @ 0x795624
//
// 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
//
int sub_792978()
{
int v0; // r5
_DWORD *v1; // r0
_DWORD *v2; // r6
int result; // r0
v0 = COMP_zlib();
CRYPTO_mem_ctrl(3);
dword_AD2CE4 = OPENSSL_sk_new(sub_792960);
if ( COMP_get_type(v0) )
{
if ( dword_AD2CE4 )
{
v1 = (_DWORD *)CRYPTO_malloc(12, "ssl/ssl_ciph.c", 484);
v2 = v1;
if ( v1 )
{
*v1 = 1;
v1[2] = v0;
v1[1] = COMP_get_name(v0);
OPENSSL_sk_push(dword_AD2CE4, v2);
OPENSSL_sk_sort(dword_AD2CE4);
}
}
}
result = CRYPTO_mem_ctrl(2);
dword_AD2CE8 = 1;
return result;
}