//
// sub_BB5068 from 0xbb5068 to 0xbb50d8 (112 bytes)
//
// 2 xrefs:
// > sub_BB78D0 @ 0xbb8a7c
// > sub_BB78D0 @ 0xbb8a84
//
// 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_BB5068(__int64 a1, __int64 a2)
{
char input_flags; // w0
unsigned int v5; // w1
__int64 v6; // x0
unsigned int (__fastcall *writer)(__int64, __int64); // x0
if ( (unsigned int)UI_get_string_type(a2) - 1 > 1
|| !UI_get0_user_data(a1)
|| (input_flags = UI_get_input_flags(a2), v5 = 1, (input_flags & 2) == 0) )
{
v6 = UI_OpenSSL();
writer = (unsigned int (__fastcall *)(__int64, __int64))UI_method_get_writer(v6);
return writer(a1, a2);
}
return v5;
}