//
// sub_E2B298 from 0xe2b298 to 0xe2b320 (136 bytes)
//
// 2 xrefs:
// > sub_E2DA90 @ 0xe2ec2c
// > sub_E2DA90 @ 0xe2ec34
//
// 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_E2B298(__int64 a1, __int64 a2)
{
char *v4; // x21
__int64 v5; // x0
__int64 (__fastcall *reader)(__int64, __int64); // x0
if ( (unsigned int)UI_get_string_type(a2) - 1 <= 1
&& (v4 = (char *)UI_get0_user_data(a1)) != nullptr
&& (UI_get_input_flags(a2) & 2) != 0 )
{
UI_set_result(a1, a2, v4);
return 1;
}
else
{
v5 = UI_OpenSSL();
reader = (__int64 (__fastcall *)(__int64, __int64))UI_method_get_reader(v5);
return reader(a1, a2);
}
}