//
// sub_10057F0E8 from 0x10057f0e8 to 0x10057f184 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009aaf50
//
// 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:29 +0000
//
__int64 __fastcall sub_10057F0E8(__int64 a1, __int64 a2, __int64 a3)
{
char v6; // w8
__int64 result; // x0
if ( !*(_QWORD *)(a1 + 192) )
return 30;
if ( (unsigned int)sub_10057C5B0(a1, a2, a3) )
return 0;
if ( (*(unsigned int (__fastcall **)(_QWORD, __int64, __int64, _QWORD, __int64))(**(_QWORD **)(a1 + 40) + 312LL))(
*(_QWORD *)(a1 + 40),
a2,
2,
(unsigned int)(a2 + a3 - 1),
2) )
{
return 0;
}
v6 = atomic_load((unsigned int *)(*(_QWORD *)(a1 + 40) + 88LL));
if ( (v6 & 0x80) == 0 )
return 0;
result = (*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 192) + 144LL))(
*(_QWORD *)(a1 + 192),
a2,
a3);
if ( !(_DWORD)result )
return 0;
return result;
}