//
// sub_10054A740 from 0x10054a740 to 0x10054a76c (44 bytes)
//
// 16 xrefs:
// > sub_100548630 @ 0x10054870c
// > sub_10054DB30 @ 0x10054ecf4
// > sub_10054DB30 @ 0x10054f2dc
// > sub_10054DB30 @ 0x10054f538
// > sub_10054DB30 @ 0x10054f6b0
// > sub_10054DB30 @ 0x10054f6f8
// > sub_10054DB30 @ 0x10054f7c0
// > sub_100553438 @ 0x100553970
// > sub_100557A54 @ 0x100557ab8
// > sub_10057213C @ 0x100572250
// > sub_100574A1C @ 0x100574e44
// > sub_100575DC0 @ 0x100576a68
// > sub_100577A40 @ 0x100577ae0
// > sub_100578E50 @ 0x100578ed4
// > sub_100579A34 @ 0x10057a25c
// > sub_100582418 @ 0x100582730
//
// 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_10054A740(__int64 result, __int64 a2)
{
unsigned int v2; // w8
if ( a2 < 0 )
{
*(_QWORD *)(result + 1992) = 0;
v2 = *(_DWORD *)(result + 2032) & 0xFFFFFFDF;
}
else
{
*(_QWORD *)(result + 1992) = a2;
v2 = *(_DWORD *)(result + 2032) | 0x20;
}
*(_DWORD *)(result + 2032) = v2;
return result;
}