//
// sub_10053B3BC from 0x10053b3bc to 0x10053b41c (96 bytes)
//
// 2 xrefs:
// > sub_100537D24 @ 0x1005381e0
// > sub_100538A48 @ 0x100538f6c
//
// 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_10053B3BC(__int64 result, char a2)
{
__int64 v2; // x8
_QWORD *v3; // x8
__int64 v4; // t1
__int64 v5; // x9
__int64 v6; // x9
v2 = *(_QWORD *)(result + 128);
if ( (a2 & 1) != 0 )
{
v3 = (_QWORD *)(v2 + 12);
v5 = *(_QWORD *)(result + 136);
++*(_WORD *)(v5 + 520);
*(_OWORD *)(v5 + 528) = *(_OWORD *)(v5 + 544);
v6 = *(_QWORD *)(result + 136);
*(_QWORD *)(v6 + 552) = 0;
*(_QWORD *)(v6 + 544) = 0;
}
else
{
v4 = *(_QWORD *)(v2 + 88);
v3 = (_QWORD *)(v2 + 88);
*(_QWORD *)(*(_QWORD *)(result + 136) + 566LL) = v4;
++*(_WORD *)(*(_QWORD *)(result + 136) + 522LL);
}
*v3 = 0;
return result;
}