//
// sub_1005D46B0 from 0x1005d46b0 to 0x1005d4708 (88 bytes)
//
// 2 xrefs:
// > sub_1005FABF0 @ 0x1005fac3c
// > sub_1005FADC8 @ 0x1005fae08
//
// 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:09:33 +0000
//
__int64 __fastcall sub_1005D46B0(__int64 a1, __int64 a2)
{
__int64 result; // x0
if ( *(_BYTE *)(a1 + 408) )
return 0;
*(_QWORD *)a1 = a2;
result = sub_1005DBC40(a1 + 400, 0);
if ( !(_DWORD)result )
{
result = sub_1005D3F74(a1 + 16, a1);
if ( !(_DWORD)result )
*(_BYTE *)(a1 + 408) = 1;
}
return result;
}