//
// png_free_buffer_list from 0x664208 to 0x664226 (30 bytes)
//
// 3 xrefs:
// > png_set_compression_buffer_size @ 0x660a5a
// > png_destroy_write_struct @ 0x662692
// > png_compress_IDAT @ 0x6645be
//
// 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_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;
}