//
// sub_100442C1C from 0x100442c1c to 0x100442c80 (100 bytes)
//
// 7 xrefs:
// > sub_1004546E4 @ 0x100454aa4
// > sub_1004A5AC0 @ 0x1004a5b10
// > sub_1004A5B34 @ 0x1004a5be4
// > sub_1004B62D4 @ 0x1004b65bc
// > sub_1005074CC @ 0x1005076cc
// > sub_1005074CC @ 0x1005079d0
// > sub_1005085F4 @ 0x100508654
//
// 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_100442C1C(__int64 a1)
{
_QWORD *v1; // x19
__int64 v2; // x2
__int64 result; // x0
v1 = (_QWORD *)(a1 + 69536);
if ( !*(_QWORD *)(a1 + 69536) )
return 0;
v2 = *(_QWORD *)(a1 + 70440);
if ( !v2 )
return 28;
*(_QWORD *)(a1 + 70440) = 0;
*(_BYTE *)(a1 + 70448) = 0;
result = sub_1004CF990(a1, 1048580, v2, 0);
if ( !(_DWORD)result )
return sub_1004B5CA0(*v1);
return result;
}