//
// sub_1004E70C0 from 0x1004e70c0 to 0x1004e7140 (128 bytes)
//
// 2 xrefs:
// > sub_1004DA69C @ 0x1004da848
// > sub_1004E7140 @ 0x1004e75f4
//
// 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_1004E70C0(__int64 a1, __int64 a2)
{
__int64 v4; // x1
__int64 v5; // x1
__int64 v6; // x1
__int64 v7; // x1
__int64 v8; // x1
v4 = *(_QWORD *)(a2 + 24);
if ( v4 )
sub_100478D80(a1, v4);
v5 = *(_QWORD *)(a2 + 32);
if ( v5 )
sub_100478D80(a1, v5);
v6 = *(_QWORD *)(a2 + 40);
if ( v6 )
sub_100478D80(a1, v6);
v7 = *(_QWORD *)(a2 + 48);
if ( v7 )
sub_100478D80(a1, v7);
v8 = *(_QWORD *)(a2 + 56);
if ( v8 )
sub_100478D80(a1, v8);
*(_QWORD *)(a2 + 64) = 0;
*(_OWORD *)(a2 + 32) = 0u;
*(_OWORD *)(a2 + 48) = 0u;
*(_OWORD *)a2 = 0u;
*(_OWORD *)(a2 + 16) = 0u;
return 0.0;
}