//
// sub_10054E57C from 0x10054e57c to 0x10054e5e4 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009aa390
//
// 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:07:52 +0000
//
__int64 __fastcall sub_10054E57C(__int64 a1)
{
__int64 v2; // x19
_QWORD *v3; // x22
_QWORD *v4; // x20
__int64 v5; // x0
__int64 v6; // x21
v2 = *(_QWORD *)(a1 + 64);
sub_1005DBDD8(v2);
v3 = (_QWORD *)(a1 + 16);
v4 = (_QWORD *)(a1 + 16);
while ( 1 )
{
v4 = (_QWORD *)*v4;
if ( v4 == v3 )
break;
v5 = sub_1005733D4(v4);
if ( (_DWORD)v5 )
{
v6 = v5;
goto LABEL_6;
}
}
v6 = 0;
LABEL_6:
sub_1005DBE08(v2);
return v6;
}