//
// sub_517DC from 0x517dc to 0x51802 (38 bytes)
//
// 1 xrefs:
// > sub_50F6C @ 0x5124c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:40:43 +0000
//
int __fastcall sub_517DC(int a1)
{
int v2; // r1
if ( !**(_DWORD **)(a1 + 4) )
{
v2 = *(_DWORD *)(a1 + 8);
if ( v2 )
{
sub_50EB0(*(_DWORD *)a1, v2, 0);
}
else if ( *(_DWORD *)(a1 + 12) )
{
sub_C06BE();
}
}
return a1;
}