//
// 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 (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:14:22 +0000
//
__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;
}
}