//
// sub_1004E6FFC from 0x1004e6ffc to 0x1004e7054 (88 bytes)
//
// 1 xrefs:
// > sub_10042E2AC @ 0x10042e354
//
// 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
//
double __fastcall sub_1004E6FFC(__int64 a1, __int64 a2)
{
__int64 v4; // x1
__int64 v5; // x1
double result; // d0
if ( *(_DWORD *)(a2 + 48) )
{
v4 = *(_QWORD *)(a2 + 40);
if ( v4 )
sub_100478D80(a1, v4);
v5 = *(_QWORD *)(a2 + 8);
if ( v5 )
sub_100478D80(a1, v5);
*(_QWORD *)(a2 + 48) = 0;
*(_OWORD *)(a2 + 16) = 0u;
*(_OWORD *)(a2 + 32) = 0u;
*(_OWORD *)a2 = 0u;
return 0.0;
}
return result;
}