//
// sub_10057E490 from 0x10057e490 to 0x10057e50c (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009aaef8
//
// 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 11:08:28 +0000
//
__int64 __fastcall sub_10057E490(__int64 a1)
{
__int64 v2; // x0
__int64 result; // x0
__int64 v4; // x20
__int64 v5; // x19
v2 = *(_QWORD *)(a1 + 192);
if ( !v2 )
return 30;
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 56LL))(v2);
if ( !(_DWORD)result )
{
v4 = *(_QWORD *)(a1 + 8);
if ( v4 )
{
sub_100568CC4(*(_QWORD *)(a1 + 8), 8u);
v5 = sub_10057C4BC(a1);
sub_100568CE4(v4, 8u);
return v5;
}
else
{
return sub_10057C4BC(a1);
}
}
return result;
}