//
// UI_ctrl from 0xde3138 to 0xde31e8 (176 bytes)
//
// 1 xrefs:
// > ??> @ 0xb55f0
//
// 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 UI_ctrl(__int64 a1, int a2, __int64 a3)
{
unsigned __int64 v5; // x0
int v6; // w2
if ( a1 )
{
if ( a2 == 1 )
{
v5 = *(unsigned int *)(a1 + 32);
if ( a3 )
v6 = v5 | 0x100;
else
v6 = v5 & 0xFFFFFEFF;
*(_DWORD *)(a1 + 32) = v6;
return (v5 >> 8) & 1;
}
else if ( a2 == 2 )
{
return *(_DWORD *)(a1 + 32) & 1;
}
else
{
ERR_put_error(40, 111, 106, (__int64)"crypto/ui/ui_lib.c", 501);
return 0xFFFFFFFFLL;
}
}
else
{
ERR_put_error(40, 111, 67, (__int64)"crypto/ui/ui_lib.c", 483);
return 0xFFFFFFFFLL;
}
}