//
// png_free from 0x862238 to 0x86224e (22 bytes)
//
// 106 xrefs:
// > png_zfree @ 0x85d08c
// > sub_85D090 @ 0x85d0bc
// > png_free_data @ 0x85d5b4
// > png_free_data @ 0x85d61e
// > png_free_data @ 0x85d65e
// > png_free_data @ 0x85d670
// > png_free_data @ 0x85d6b0
// > png_free_data @ 0x85d6be
// > png_free_data @ 0x85d6de
// > png_free_data @ 0x85d704
// > png_free_data @ 0x85d70e
// > png_free_data @ 0x85d738
// > png_free_data @ 0x85d744
// > png_free_data @ 0x85d762
// > png_free_data @ 0x85d776
// > png_free_data @ 0x85d79e
// > png_free_data @ 0x85d7c2
// > png_free_data @ 0x85d7e8
// > png_free_data @ 0x85d7f0
// > png_free_data @ 0x85d824
// > png_free_data @ 0x85d836
// > png_free_data @ 0x85d862
// > png_free_data @ 0x85d874
// > png_free_data @ 0x85d8ac
// > png_free_data @ 0x85d8ba
// > png_free_data @ 0x85d8cc
// > png_destroy_info_struct @ 0x85d920
// > png_destroy_gamma_table @ 0x86060a
// > png_destroy_gamma_table @ 0x860630
// > png_destroy_gamma_table @ 0x86063e
// > png_destroy_gamma_table @ 0x86064e
// > png_destroy_gamma_table @ 0x86065e
// > png_destroy_gamma_table @ 0x860684
// > png_destroy_gamma_table @ 0x860692
// > png_destroy_gamma_table @ 0x8606bc
// > png_destroy_gamma_table @ 0x8606ca
// > png_free_jmpbuf @ 0x8610f6
// > png_destroy_png_struct @ 0x862276
// > png_push_save_buffer @ 0x8624cc
// > png_push_save_buffer @ 0x862540
// > sub_865DE8 @ 0x866216
// > sub_865DE8 @ 0x86628c
// > sub_866A70 @ 0x866bd0
// > png_destroy_read_struct @ 0x867538
// > png_destroy_read_struct @ 0x867546
// > png_destroy_read_struct @ 0x867554
// > png_destroy_read_struct @ 0x867562
// > png_destroy_read_struct @ 0x867570
// > png_destroy_read_struct @ 0x8675a4
// > png_destroy_read_struct @ 0x8675b2
// > png_destroy_read_struct @ 0x8675c0
// > png_destroy_read_struct @ 0x8675d8
// > png_set_quantize @ 0x868e02
// > png_set_quantize @ 0x868e2a
// > png_set_quantize @ 0x868e38
// > png_set_quantize @ 0x868e42
// > png_set_quantize @ 0x868efe
// > png_set_quantize @ 0x8691ee
// > sub_86C418 @ 0x86c5a6
// > sub_86C418 @ 0x86c5e0
// > png_handle_iCCP @ 0x86d3d2
// > png_handle_sPLT @ 0x86d6b4
// > png_handle_sPLT @ 0x86d712
// > png_handle_pCAL @ 0x86de3a
// > png_handle_pCAL @ 0x86de6c
// > png_handle_pCAL @ 0x86df36
// > png_handle_sCAL @ 0x86e022
// > png_handle_tEXt @ 0x86e2a4
// > png_handle_zTXt @ 0x86e3da
// > png_handle_iTXt @ 0x86e588
// > png_handle_unknown @ 0x86e75c
// > png_handle_unknown @ 0x86e824
// > png_handle_unknown @ 0x86e852
// > png_read_IDAT_data @ 0x86f2e0
// > png_read_start_row @ 0x86f5e6
// > png_read_start_row @ 0x86f676
// > png_read_start_row @ 0x86f680
// > png_set_sCAL_s @ 0x86fe54
// > png_set_iCCP @ 0x8701ea
// > png_set_text_2 @ 0x870454
// > png_set_sPLT @ 0x870604
// > png_set_sPLT @ 0x8706aa
// > png_set_unknown_chunks @ 0x870722
// > png_set_keep_unknown_chunks @ 0x870968
// > png_set_keep_unknown_chunks @ 0x87099e
// > png_destroy_write_struct @ 0x87271e
// > png_destroy_write_struct @ 0x87272c
// > png_destroy_write_struct @ 0x872736
// > png_destroy_write_struct @ 0x872740
// > png_destroy_write_struct @ 0x87274a
// > png_destroy_write_struct @ 0x872754
// > png_destroy_write_struct @ 0x872782
// > png_destroy_write_struct @ 0x872794
// > png_destroy_write_struct @ 0x8727a6
// > png_destroy_write_struct @ 0x8727b0
// > png_destroy_write_struct @ 0x8727bc
// > png_destroy_write_struct @ 0x8727ce
// > png_set_filter_heuristics @ 0x8729ee
// > png_set_filter_heuristics @ 0x872a00
// > png_set_filter_heuristics @ 0x872a12
// > png_set_filter_heuristics_fixed @ 0x872c52
// > png_set_filter_heuristics_fixed @ 0x872c64
// > png_set_filter_heuristics_fixed @ 0x872c76
// > sub_872E84 @ 0x87301e
// > png_free_buffer_list @ 0x87429a
// > png_write_pCAL @ 0x875a1e
//
// 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:44 +0000
//
void __fastcall png_free(int a1, void *a2)
{
bool v2; // zf
void (*v3)(void); // r3
v2 = a2 == nullptr;
if ( a2 )
v2 = a1 == 0;
if ( !v2 )
{
v3 = *(void (**)(void))(a1 + 824);
if ( v3 )
v3();
else
png_free_default(a1, a2);
}
}