//
// sub_E2B228 from 0xe2b228 to 0xe2b298 (112 bytes)
//
// 2 xrefs:
// > sub_E2DA90 @ 0xe2ec3c
// > sub_E2DA90 @ 0xe2ec44
//
// 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:09:51 +0000
//
__int64 __fastcall sub_E2B228(__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;
}