//
// png_chunk_error from 0x861198 to 0x8611b4 (28 bytes)
//
// 33 xrefs:
// > png_chunk_benign_error @ 0x8611c6
// > png_benign_error @ 0x861228
// > png_read_info @ 0x8658ec
// > png_read_info @ 0x8659d2
// > png_crc_finish @ 0x86c90c
// > png_handle_IHDR @ 0x86c9f0
// > png_handle_IHDR @ 0x86c9f8
// > png_handle_PLTE @ 0x86cb74
// > png_handle_PLTE @ 0x86cb7c
// > png_handle_PLTE @ 0x86cb84
// > png_handle_IEND @ 0x86cbe6
// > png_handle_gAMA @ 0x86cc7e
// > png_handle_sBIT @ 0x86ce10
// > png_handle_cHRM @ 0x86d040
// > png_handle_sRGB @ 0x86d0f4
// > png_handle_iCCP @ 0x86d368
// > png_handle_sPLT @ 0x86d736
// > png_handle_tRNS @ 0x86d8b8
// > png_handle_bKGD @ 0x86da42
// > png_handle_hIST @ 0x86db22
// > png_handle_pHYs @ 0x86dbf6
// > png_handle_oFFs @ 0x86dcca
// > png_handle_pCAL @ 0x86df3e
// > png_handle_sCAL @ 0x86e0d6
// > png_handle_tIME @ 0x86e1de
// > png_handle_tEXt @ 0x86e30c
// > png_handle_zTXt @ 0x86e496
// > png_handle_iTXt @ 0x86e710
// > png_handle_unknown @ 0x86e964
// > png_handle_unknown @ 0x86e96e
// > png_check_chunk_name @ 0x86ea04
// > png_read_IDAT_data @ 0x86f38c
// > png_read_IDAT_data @ 0x86f390
//
// 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:43 +0000
//
void __fastcall __noreturn png_chunk_error(int a1, const char *a2)
{
int v2; // r5
_BYTE v3[220]; // [sp+0h] [bp-DCh] BYREF
if ( a1 )
{
v2 = a1;
sub_860B78(*(_DWORD *)(a1 + 476), v3, (int)a2);
a1 = v2;
a2 = v3;
}
png_error(a1, a2);
}