//
// png_chunk_error from 0xbcd20c to 0xbcd250 (68 bytes)
//
// 34 xrefs:
// > png_chunk_benign_error @ 0xbcd268
// > png_benign_error @ 0xbcd2e8
// > png_read_info @ 0xbd3704
// > png_read_info @ 0xbd3714
// > png_crc_finish @ 0xbdf194
// > png_handle_IHDR @ 0xbdf32c
// > png_handle_IHDR @ 0xbdf338
// > png_handle_PLTE @ 0xbdf4b4
// > png_handle_PLTE @ 0xbdf570
// > png_handle_PLTE @ 0xbdf57c
// > png_handle_IEND @ 0xbdf5ec
// > png_handle_gAMA @ 0xbdf6c0
// > png_handle_sBIT @ 0xbdf8b0
// > png_handle_cHRM @ 0xbdfb60
// > png_handle_sRGB @ 0xbdfc4c
// > png_handle_iCCP @ 0xbdffc0
// > png_handle_sPLT @ 0xbe04c0
// > png_handle_tRNS @ 0xbe06d0
// > png_handle_bKGD @ 0xbe0900
// > png_handle_hIST @ 0xbe0a60
// > png_handle_pHYs @ 0xbe0b9c
// > png_handle_oFFs @ 0xbe0ce4
// > png_handle_pCAL @ 0xbe1030
// > png_handle_sCAL @ 0xbe129c
// > png_handle_tIME @ 0xbe13e4
// > png_handle_tEXt @ 0xbe15c4
// > png_handle_zTXt @ 0xbe180c
// > png_handle_iTXt @ 0xbe1b44
// > png_handle_unknown @ 0xbe1e3c
// > png_handle_unknown @ 0xbe1e4c
// > png_check_chunk_name @ 0xbe1ed8
// > png_read_IDAT_data @ 0xbe2c90
// > png_read_IDAT_data @ 0xbe2cb4
// > ??> @ 0x56fd0
//
// 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 __noreturn png_chunk_error(__int64 a1, const char *a2)
{
__int64 v2; // x20
_BYTE v3[216]; // [xsp+20h] [xbp+20h] BYREF
v2 = a1;
if ( a1 )
{
sub_BCC8A8(*(unsigned int *)(a1 + 592), v3, (__int64)a2);
a1 = v2;
a2 = v3;
}
png_error(a1, a2);
}