//
// png_set_read_fn from 0x867b10 to 0x867b46 (54 bytes)
//
// 3 xrefs:
// > cocos2d::CCImage::_initWithPngData @ 0x7eb95a
// > png_set_progressive_read_fn @ 0x8632ec
// > png_create_read_struct_2 @ 0x8656a8
//
// 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:48 +0000
//
_DWORD *__fastcall png_set_read_fn(
_DWORD *result,
int a2,
size_t (__fastcall *a3)(size_t result, void *ptr, size_t a3))
{
int v3; // r3
_DWORD *v4; // r4
if ( result )
{
result[72] = a2;
if ( !a3 )
a3 = png_default_read_data;
v3 = result[70];
v4 = result;
result[71] = a3;
if ( v3 )
{
result[70] = 0;
result = (_DWORD *)png_warning((int)result, "Can't set both read_data_fn and write_data_fn in the same structure");
}
v4[143] = 0;
}
return result;
}