//
// sub_10047E254 from 0x10047e254 to 0x10047e2e8 (148 bytes)
//
// 1 xrefs:
// > sub_10047E250 @ 0x10047e250
//
// 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_10047E254(__int64 a1)
{
__int64 result; // x0
int v3; // [xsp+8h] [xbp-18h] BYREF
int v4; // [xsp+Ch] [xbp-14h] BYREF
*(_DWORD *)(a1 + 40) = 1000;
*(_QWORD *)(a1 + 328) = 0;
*(_QWORD *)(a1 + 360) = 0;
*(_DWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 8) = 0;
*(_OWORD *)(a1 + 288) = 0u;
*(_OWORD *)(a1 + 304) = 0u;
if ( (unsigned int)sub_10047E2E8() )
return sub_1004AA8B8(*(_QWORD *)(a1 + 368), 0, 0);
result = sub_1004AAA30(*(_QWORD *)(a1 + 368), &v3);
if ( !(_DWORD)result )
{
result = sub_1004AAAA0(*(_QWORD *)(a1 + 368), &v4);
if ( !(_DWORD)result )
{
result = sub_1004AAA60(*(_QWORD *)(a1 + 368), (unsigned int)(v3 + v4));
if ( !(_DWORD)result )
return sub_1004AA8B8(*(_QWORD *)(a1 + 368), 0, 0);
}
}
return result;
}