//
// sub_7EB660 from 0x7eb660 to 0x7eb696 (54 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:00:59 +0000
//
void *__fastcall sub_7EB660(int a1, void *a2, size_t a3)
{
_DWORD *io_ptr; // r0
int v7; // r3
_DWORD *v8; // r4
void *result; // r0
io_ptr = (_DWORD *)png_get_io_ptr();
v7 = io_ptr[2];
v8 = io_ptr;
if ( (signed int)(a3 + v7) > io_ptr[1] )
png_error(a1, "pngReaderCallback failed");
result = memcpy(a2, (const void *)(*io_ptr + v7), a3);
v8[2] += a3;
return result;
}