//
// sub_105FB58 from 0x105fb58 to 0x105fc00 (168 bytes)
//
// 2 xrefs:
// > UI_free @ 0x105ff00
// > UI_free @ 0x105ff08
//
// 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:16:50 +0000
//
void __fastcall sub_105FB58(void **a1)
{
if ( ((_DWORD)a1[7] & 1) != 0 && (CRYPTO_free(a1[1], (__int64)"crypto/ui/ui_lib.c", 56), *(_DWORD *)a1 == 3) )
{
CRYPTO_free(a1[4], (__int64)"crypto/ui/ui_lib.c", 59);
CRYPTO_free(a1[5], (__int64)"crypto/ui/ui_lib.c", 60);
CRYPTO_free(a1[6], (__int64)"crypto/ui/ui_lib.c", 61);
CRYPTO_free(a1, (__int64)"crypto/ui/ui_lib.c", 67);
}
else
{
CRYPTO_free(a1, (__int64)"crypto/ui/ui_lib.c", 67);
}
}