//
// UI_get0_result from 0xa501e4 to 0xa50270 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x804ec
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:22 +0000
//
int __fastcall UI_get0_result(int a1, signed int a2)
{
_DWORD *v4; // r0
if ( a2 < 0 )
{
ERR_put_error(40, 107, 103, (int)"crypto/ui/ui_lib.c", 400);
}
else
{
if ( a2 < OPENSSL_sk_num(*(_DWORD *)(a1 + 4)) )
{
v4 = (_DWORD *)OPENSSL_sk_value(*(_DWORD **)(a1 + 4), a2);
return UI_get0_result_string(v4);
}
ERR_put_error(40, 107, 102, (int)"crypto/ui/ui_lib.c", 404);
}
return 0;
}