//
// png_free_buffer_list from 0x874288 to 0x8742a6 (30 bytes)
//
// 3 xrefs:
// > png_set_compression_buffer_size @ 0x870ada
// > png_destroy_write_struct @ 0x872712
// > png_compress_IDAT @ 0x87463e
//
// 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:03:00 +0000
//
int __fastcall png_free_buffer_list(int result, _DWORD **a2)
{
_DWORD *v3; // r1
int v4; // r5
_DWORD *v5; // r4
v3 = *a2;
if ( v3 )
{
v4 = result;
*a2 = nullptr;
do
{
v5 = (_DWORD *)*v3;
png_free(v4, v3);
v3 = v5;
}
while ( v5 );
}
return result;
}