//
// ssl_init_wbio_buffer from 0xfc04c8 to 0xfc0564 (156 bytes)
//
// 2 xrefs:
// > sub_FC5998 @ 0xfc5f90
// > ??> @ 0xb9a88
//
// 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:15:20 +0000
//
__int64 __fastcall ssl_init_wbio_buffer(__int64 a1)
{
unsigned int v1; // w21
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x22
__int64 v7; // x1
v1 = 1;
if ( !*(_QWORD *)(a1 + 32) )
{
v4 = BIO_f_buffer();
v5 = BIO_new(v4);
v6 = v5;
if ( v5 && BIO_int_ctrl(v5, 117, 1, 0) )
{
v7 = *(_QWORD *)(a1 + 24);
*(_QWORD *)(a1 + 32) = v6;
*(_QWORD *)(a1 + 24) = BIO_push(v6, v7);
}
else
{
v1 = 0;
BIO_free(v6);
ERR_put_error(20, 184, 7, "ssl/ssl_lib.c", 3311);
}
}
return v1;
}