	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function freeimage
_freeimage:                             ## @freeimage
	.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
	callq	_freebuffer
	leaq	40(%rbx), %rdi
	callq	_png_image_free
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_fclose
	movq	$0, 32(%rbx)
LBB0_2:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
LBB0_4:
	movq	(%rbx), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.5:
	movq	_KEEP_TMPFILES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_7
## %bb.6:
	callq	_remove
	movq	(%rbx), %rax
	movq	$0, (%rax)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEEP_TMPFILES,4,2              ## @KEEP_TMPFILES
	.no_dead_strip	_freeimage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function freeimage
_freeimage:                             ; @freeimage
	.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
	bl	_freebuffer
	add	x0, x19, #40
	bl	_png_image_free
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_fclose
	str	xzr, [x19, #32]
LBB0_2:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_free
	stp	xzr, xzr, [x19, #16]
LBB0_4:
	ldr	x0, [x19]
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _KEEP_TMPFILES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KEEP_TMPFILES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	bl	_remove
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KEEP_TMPFILES,4,2              ; @KEEP_TMPFILES
	.no_dead_strip	_freeimage
.subsections_via_symbols
