//
// png_crc_read from 0x65c684 to 0x65c6a2 (30 bytes)
//
// 31 xrefs:
// > png_push_read_chunk @ 0x652704
// > png_push_read_IDAT @ 0x653170
// > sub_65C6A4 @ 0x65c778
// > sub_65C6A4 @ 0x65c784
// > png_crc_finish @ 0x65c83c
// > png_crc_finish @ 0x65c84e
// > png_handle_IHDR @ 0x65c8bc
// > png_handle_PLTE @ 0x65ca52
// > png_handle_gAMA @ 0x65cbb6
// > png_handle_sBIT @ 0x65cc90
// > png_handle_cHRM @ 0x65cdf2
// > png_handle_sRGB @ 0x65d01c
// > png_handle_iCCP @ 0x65d0fc
// > png_handle_iCCP @ 0x65d156
// > png_handle_sPLT @ 0x65d4f8
// > png_handle_tRNS @ 0x65d73e
// > png_handle_tRNS @ 0x65d77a
// > png_handle_tRNS @ 0x65d800
// > png_handle_bKGD @ 0x65d8e2
// > png_handle_hIST @ 0x65da40
// > png_handle_pHYs @ 0x65db1a
// > png_handle_oFFs @ 0x65dbee
// > png_handle_pCAL @ 0x65dca4
// > png_handle_sCAL @ 0x65df40
// > png_handle_tIME @ 0x65e106
// > png_handle_tEXt @ 0x65e1c0
// > png_handle_zTXt @ 0x65e2f2
// > png_handle_iTXt @ 0x65e498
// > png_handle_unknown @ 0x65e862
// > png_handle_unknown @ 0x65e8d8
// > png_read_IDAT_data @ 0x65f20e
//
// 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
//
_DWORD *__fastcall png_crc_read(_DWORD *result, int a2, int a3)
{
_DWORD *v4; // r6
if ( result )
{
v4 = result;
png_read_data((int)result);
return png_calculate_crc(v4, a2, a3);
}
return result;
}