//
// sub_10053D074 from 0x10053d074 to 0x10053d0b4 (64 bytes)
//
// 2 xrefs:
// > sub_100537D24 @ 0x1005386f4
// > sub_1005394E4 @ 0x100539514
//
// 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_10053D074(__int64 a1, __int64 a2, char a3, __int64 a4, __int64 a5, __int64 a6)
{
__int64 v6; // x8
__int16 v7; // w9
__int16 v8; // w9
v6 = *(_QWORD *)(a1 + 136);
if ( !a5 && !*(_DWORD *)(v6 + 640) )
{
v7 = *(_WORD *)(v6 + 562);
*(_WORD *)(v6 + 560) = v7;
*(_WORD *)(v6 + 562) = v7 + 1;
}
v8 = *(_WORD *)(v6 + 560);
*(_BYTE *)(v6 + 656) = a3;
*(_QWORD *)(v6 + 664) = a4;
*(_WORD *)(v6 + 672) = v8;
*(_QWORD *)(v6 + 680) = a5;
*(_QWORD *)(v6 + 688) = a6;
return a2 + 12;
}