//
// png_crc_read from 0xbdedec to 0xbdee40 (84 bytes)
//
// 32 xrefs:
// > png_push_read_chunk @ 0xbcf378
// > png_push_read_IDAT @ 0xbd01c0
// > sub_BDEE40 @ 0xbdef1c
// > sub_BDEE40 @ 0xbdf000
// > png_crc_finish @ 0xbdf0fc
// > png_crc_finish @ 0xbdf118
// > png_handle_IHDR @ 0xbdf1e8
// > png_handle_PLTE @ 0xbdf3f0
// > png_handle_gAMA @ 0xbdf664
// > png_handle_sBIT @ 0xbdf738
// > png_handle_cHRM @ 0xbdf94c
// > png_handle_sRGB @ 0xbdfbdc
// > png_handle_iCCP @ 0xbdfd40
// > png_handle_iCCP @ 0xbdfdc0
// > png_handle_sPLT @ 0xbe022c
// > png_handle_tRNS @ 0xbe0598
// > png_handle_tRNS @ 0xbe05f8
// > png_handle_tRNS @ 0xbe0654
// > png_handle_bKGD @ 0xbe07d8
// > png_handle_hIST @ 0xbe09b0
// > png_handle_pHYs @ 0xbe0b2c
// > png_handle_oFFs @ 0xbe0c70
// > png_handle_pCAL @ 0xbe0d50
// > png_handle_sCAL @ 0xbe10cc
// > png_handle_tIME @ 0xbe1354
// > png_handle_tEXt @ 0xbe1458
// > png_handle_zTXt @ 0xbe1638
// > png_handle_iTXt @ 0xbe1884
// > png_handle_unknown @ 0xbe1dc4
// > png_handle_unknown @ 0xbe1e28
// > png_read_IDAT_data @ 0xbe2b30
// > ??> @ 0xab498
//
// 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
//
__int64 __fastcall png_crc_read(__int64 result, __int64 a2, unsigned int a3)
{
__int64 v3; // x19
_DWORD *v5; // x20
if ( result )
{
v3 = a3;
v5 = (_DWORD *)result;
png_read_data(result);
return png_calculate_crc(v5, a2, v3);
}
return result;
}