	.file	"extr_readpng.c_readpng_cleanup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	readpng_cleanup
	.type	readpng_cleanup, @function
readpng_cleanup:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	test	edi, edi
	je	.L2
	mov	rdi, QWORD PTR image_data[rip]
	test	rdi, rdi
	je	.L2
	call	free@PLT
	mov	QWORD PTR image_data[rip], 0
.L2:
	cmp	QWORD PTR png_ptr[rip], 0
	je	.L1
	cmp	QWORD PTR info_ptr[rip], 0
	je	.L1
	xor	edx, edx
	lea	rsi, info_ptr[rip]
	lea	rdi, png_ptr[rip]
	call	png_destroy_read_struct@PLT
	mov	QWORD PTR png_ptr[rip], 0
	mov	QWORD PTR info_ptr[rip], 0
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	readpng_cleanup, .-readpng_cleanup
	.comm	png_ptr,8,8
	.comm	info_ptr,8,8
	.comm	image_data,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_readpng.c_readpng_cleanup.c"
	.text
	.align	2
	.global	readpng_cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	readpng_cleanup, %function
readpng_cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	push	{r4, r5, r6, lr}
	beq	.L2
	ldr	r4, .L18
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L2
	bl	free
	mov	r3, #0
	str	r3, [r4]
.L2:
	ldr	r4, .L18+4
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	ldr	r5, .L18+8
	ldr	r3, [r5]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r2, #0
	mov	r1, r5
	mov	r0, r4
	bl	png_destroy_read_struct
	mov	r3, #0
	str	r3, [r4]
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L19:
	.align	2
.L18:
	.word	image_data
	.word	png_ptr
	.word	info_ptr
	.size	readpng_cleanup, .-readpng_cleanup
	.comm	png_ptr,4,4
	.comm	info_ptr,4,4
	.comm	image_data,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
