//
// sub_18007D0D0 from 0x18007d0d0 to 0x18007d13c (108 bytes)
//
// 2 xrefs:
// > cocos2d::CCImage::_initWithPngData @ 0x18007b690
// > ??> @ 0x1801b4eb4
//
// 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
//
void *__fastcall sub_18007D0D0(__int64 a1, void *a2, size_t a3)
{
__int64 io_ptr; // rbx
__int64 v7; // rax
void *result; // rax
io_ptr = png_get_io_ptr();
v7 = *(int *)(io_ptr + 12);
if ( (int)a3 + (int)v7 > *(_DWORD *)(io_ptr + 8) )
{
png_error(a1, "pngReaderCallback failed");
JUMPOUT(0x18007D13BLL);
}
result = memcpy(a2, (const void *)(*(_QWORD *)io_ptr + v7), a3);
*(_DWORD *)(io_ptr + 12) += a3;
return result;
}