//
// sub_863300 from 0x863300 to 0x86334c (76 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:02:45 +0000
//
_DWORD *__fastcall sub_863300(_DWORD *result, void *a2, size_t a3)
{
int *v3; // r5
int v4; // r5
size_t v5; // r7
int v7; // r6
_BOOL4 v8; // r3
if ( result )
{
v3 = (int *)result[72];
if ( !v3 || (v4 = *v3) == 0 )
png_error((int)result, "invalid memory read");
v5 = *(_DWORD *)(v4 + 16);
v7 = *(_DWORD *)(v4 + 12);
v8 = v5 >= a3;
if ( !v7 )
v8 = 0;
if ( !v8 )
png_error((int)result, "read beyond end of data");
result = memcpy(a2, *(const void **)(v4 + 12), a3);
*(_DWORD *)(v4 + 12) = v7 + a3;
*(_DWORD *)(v4 + 16) = v5 - a3;
}
return result;
}