//
// sub_932CC from 0x932cc to 0x9333c (112 bytes)
//
// 4 xrefs:
// > sub_9333C @ 0x9339c
// > sub_9333C @ 0x93410
// > sub_9342C @ 0x9367c
// > sub_9342C @ 0x938c8
//
// 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_932CC(__int64 a1, void *dest, int a3)
{
__int64 v3; // x8
unsigned int v4; // w9
int v6; // w20
v3 = *(unsigned int *)(a1 + 16);
v4 = *(_DWORD *)(a1 + 20);
if ( v4 <= (unsigned int)v3 )
{
*(_BYTE *)(a1 + 36) = 1;
return 16;
}
else
{
if ( (int)v3 + a3 <= v4 )
v6 = a3;
else
v6 = v4 - v3;
if ( dest )
{
memcpy(dest, (const void *)(*(_QWORD *)(a1 + 8) + v3), v6);
LODWORD(v3) = *(_DWORD *)(a1 + 16);
}
*(_DWORD *)(a1 + 16) = v3 + v6;
return 0;
}
}