//
// png_chunk_warning from 0x651004 to 0x651024 (32 bytes)
//
// 10 xrefs:
// > png_chunk_benign_error @ 0x651142
// > png_chunk_report @ 0x651164
// > png_benign_error @ 0x6511b0
// > sub_65C1DC @ 0x65c284
// > sub_65C398 @ 0x65c4b6
// > png_crc_finish @ 0x65c87c
// > png_handle_iCCP @ 0x65d386
// > png_handle_tEXt @ 0x65e26e
// > png_handle_iTXt @ 0x65e52e
// > png_handle_unknown @ 0x65e816
//
// 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
//
int __fastcall png_chunk_warning(int a1, const char *a2)
{
int v2; // r5
_BYTE v4[220]; // [sp+0h] [bp-DCh] BYREF
if ( a1 )
{
v2 = a1;
sub_650AF8(*(_DWORD *)(a1 + 476), v4, (int)a2);
a1 = v2;
a2 = v4;
}
return png_warning(a1, a2);
}