//
// sub_1005419AC from 0x1005419ac to 0x100541a1c (112 bytes)
//
// 1 xrefs:
// > sub_1005834D0 @ 0x100585c28
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1005419AC(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x20
if ( a2 )
{
if ( *(_QWORD *)(a1 + 272) || (v4 = sub_1005DE4A4(), (*(_QWORD *)(a1 + 272) = v4) != 0) )
{
v5 = sub_1005FEF60(a2);
v6 = sub_1005F3848(v5);
if ( v6 )
{
if ( (unsigned int)sub_1005DE80C(*(_QWORD *)(a1 + 272), v6) )
return 1;
sub_1005F383C(v6);
}
}
}
return 0;
}