//
// sub_10053DCA4 from 0x10053dca4 to 0x10053dd40 (156 bytes)
//
// 2 xrefs:
// > sub_10053210C @ 0x10053247c
// > sub_10053210C @ 0x1005324e8
//
// 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_10053DCA4(__int64 a1, __int64 a2, _DWORD *a3, int a4)
{
__int64 v4; // x2
__int64 v5; // x4
if ( !a2 )
goto LABEL_6;
if ( a4 > 4 )
{
if ( !*(_QWORD *)(a1 + 656) )
{
v4 = 369;
v5 = 373;
goto LABEL_8;
}
*(_WORD *)a2 = 512;
*(_BYTE *)(a2 + 2) = BYTE1(*(_QWORD *)(*(_QWORD *)(a1 + 656) + 8LL));
*(_WORD *)(a2 + 3) = (unsigned __int8)*(_QWORD *)(*(_QWORD *)(a1 + 656) + 8LL);
LABEL_6:
*a3 = 5;
return 0;
}
v4 = 363;
v5 = 367;
LABEL_8:
sub_1005E0E48(20, 308, v4, "d1_srtp.c", v5);
return 1;
}