	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_writepng_cleanup               ## -- Begin function writepng_cleanup
	.p2align	4, 0x90
_writepng_cleanup:                      ## @writepng_cleanup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movslq	4(%rdi), %rcx
	movq	%rcx, -16(%rbp)
	movslq	(%rdi), %rax
	movq	%rax, -8(%rbp)
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	-16(%rbp), %rdi
	leaq	-8(%rbp), %rsi
	callq	_png_destroy_write_struct
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_writepng_cleanup               ; -- Begin function writepng_cleanup
	.p2align	2
_writepng_cleanup:                      ; @writepng_cleanup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldpsw	x9, x8, [x0]
	stp	x9, x8, [sp]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	x1, sp
	bl	_png_destroy_write_struct
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
