//
// sub_5BD70 from 0x5bd70 to 0x5bdd4 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c688
//
// 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 12:13:51 +0000
//
__int64 __fastcall sub_5BD70(__int64 a1)
{
__int64 v1; // x19
unsigned int v2; // w1
__int64 v3; // x8
float v4; // s0
__int64 v5; // x9
unsigned int v6; // w20
__int64 result; // x0
if ( !*(_QWORD *)(a1 + 472) )
return 30;
sub_5C688(a1);
if ( !v5 )
return 30;
if ( (*(_BYTE *)(v3 + 62) & 1) != 0 )
return 58;
v6 = v2;
result = sub_56050(v1, v2, v4);
if ( !(_DWORD)result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v1 + 120LL))(v1, v6);
return result;
}