//
// sub_1004DA34C from 0x1004da34c to 0x1004da398 (76 bytes)
//
// 7 xrefs:
// > sub_1004EC8B4 @ 0x1004ec930
// > sub_1004EC8B4 @ 0x1004ecad0
// > sub_1004EC8B4 @ 0x1004ecadc
// > sub_1004ECE90 @ 0x1004ed224
// > sub_1004ED490 @ 0x1004ed6f0
// > sub_1004ED8FC @ 0x1004edaf4
// > sub_1004EF568 @ 0x1004ef694
//
// 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_1004DA34C(__int64 *a1, int a2)
{
__int64 v3; // x9
__int64 result; // x0
if ( !a1 )
return 0xFFFFFFFFLL;
v3 = *a1;
result = 0xFFFFFFFFLL;
if ( v3 )
{
*(__int64 *)((char *)a1 + 12) = 0;
*(__int64 *)((char *)a1 + 44) = 0;
*((_DWORD *)a1 + 13) = 0;
*(__int64 *)((char *)a1 + 340) = 0;
*((_DWORD *)a1 + 87) = 0;
*((_DWORD *)a1 + 89) = -1;
a1[45] = 0;
a1[46] = 0;
*((_DWORD *)a1 + 88) = a2;
return 0;
}
return result;
}