	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_write_destroy
_png_write_destroy:                     ## @png_write_destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movq	_PNG_FLAG_ZSTREAM_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	leaq	52(%rbx), %rdi
	callq	_deflateEnd
LBB0_2:
	leaq	48(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_png_free_buffer_list
	movq	40(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_png_free
	movq	$0, 40(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_write_destroy"

	.comm	_PNG_FLAG_ZSTREAM_INITIALIZED,4,2 ## @PNG_FLAG_ZSTREAM_INITIALIZED
	.no_dead_strip	_png_write_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_write_destroy
_png_write_destroy:                     ; @png_write_destroy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _PNG_FLAG_ZSTREAM_INITIALIZED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PNG_FLAG_ZSTREAM_INITIALIZED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x0, x19, #52
	bl	_deflateEnd
LBB0_2:
	add	x1, x19, #48
	mov	x0, x19
	bl	_png_free_buffer_list
	ldr	x1, [x19, #40]
	mov	x0, x19
	bl	_png_free
	str	xzr, [x19, #40]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_write_destroy"

	.comm	_PNG_FLAG_ZSTREAM_INITIALIZED,4,2 ; @PNG_FLAG_ZSTREAM_INITIALIZED
	.no_dead_strip	_png_write_destroy
.subsections_via_symbols
