	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_end                       ## -- Begin function file_end
	.p2align	4, 0x90
_file_end:                              ## @file_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	24(%r15), %rbx
LBB0_2:
	xorl	%r14d, %r14d
	decq	(%rbx)
	jne	LBB0_32
## %bb.3:
	movq	(%r15), %r13
	movl	20(%r15), %eax
	movl	%eax, 76(%r13)
	movl	16(%r15), %eax
	movl	%eax, 72(%r13)
	movq	_FR_CURSORSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_F_SET
	movq	_FR_DONTDELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:
	movq	64(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.5:
	callq	_unlink
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	64(%r13), %rdx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_msgq_str
LBB0_7:
	movq	64(%r13), %rdi
	callq	_free
	movq	$0, 64(%r13)
	movq	_FR_TMPFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	_q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_TAILQ_REMOVE
	movq	48(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_free
LBB0_10:
	movq	%r13, %rdi
	callq	_free
LBB0_11:
	movq	$0, (%r15)
LBB0_12:
	movq	56(%rbx), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	callq	*%rax
	testl	%r12d, %r12d
	jne	LBB0_16
## %bb.14:
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%r13), %rdx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	callq	_msgq_str
	incq	(%rbx)
	movl	$1, %r14d
	jmp	LBB0_32
LBB0_16:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_log_end
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mark_end
	movq	_F_RCV_NORM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_17
LBB0_23:
	movl	8(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_25
## %bb.24:
	callq	_close
LBB0_25:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.26:
	callq	_free
LBB0_27:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.28:
	callq	_free
LBB0_29:
	cmpq	$0, 16(%rbx)
	jle	LBB0_31
## %bb.30:
	movq	24(%rbx), %rdi
	callq	_free
LBB0_31:
	movq	%rbx, %rdi
	callq	_free
LBB0_32:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.18:
	callq	_unlink
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%rbx), %rdx
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	callq	_msgq_str
LBB0_20:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.21:
	callq	_unlink
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%rbx), %rdx
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	callq	_msgq_str
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_FR_CURSORSET,4,2               ## @FR_CURSORSET
	.comm	_FR_DONTDELETE,4,2              ## @FR_DONTDELETE
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"240|%s: remove"

	.comm	_FR_TMPFILE,4,2                 ## @FR_TMPFILE
	.comm	_q,4,2                          ## @q
L_.str.1:                               ## @.str.1
	.asciz	"241|%s: close"

	.comm	_F_RCV_NORM,4,2                 ## @F_RCV_NORM
L_.str.2:                               ## @.str.2
	.asciz	"242|%s: remove"

L_.str.3:                               ## @.str.3
	.asciz	"243|%s: remove"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_end                       ; -- Begin function file_end
	.p2align	2
_file_end:                              ; @file_end
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	cbnz	x1, LBB0_2
; %bb.1:
	ldr	x19, [x20, #24]
LBB0_2:
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_26
; %bb.3:
	ldr	x22, [x20]
	ldr	d0, [x20, #16]
	str	d0, [x22, #72]
Lloh0:
	adrp	x8, _FR_CURSORSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FR_CURSORSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_F_SET
Lloh3:
	adrp	x8, _FR_DONTDELETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FR_DONTDELETE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_F_ISSET
	cbnz	x0, LBB0_12
; %bb.4:
	ldr	x0, [x22, #64]
	cbz	x0, LBB0_12
; %bb.5:
	bl	_unlink
	cbz	x0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x2, [x22, #64]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_msgq_str
LBB0_7:
	ldr	x0, [x22, #64]
	bl	_free
	str	xzr, [x22, #64]
Lloh11:
	adrp	x8, _FR_TMPFILE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FR_TMPFILE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_F_ISSET
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _q@GOTPAGE
Lloh15:
	ldr	x8, [x8, _q@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_TAILQ_REMOVE
	ldr	x0, [x22, #48]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_free
LBB0_10:
	mov	x0, x22
	bl	_free
LBB0_11:
	str	xzr, [x20]
LBB0_12:
	ldr	x0, [x19, #56]
	ldr	x8, [x0]
	cbz	x8, LBB0_16
; %bb.13:
	blr	x8
	cbnz	w21, LBB0_16
; %bb.14:
	cbz	x0, LBB0_16
; %bb.15:
Lloh17:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	x2, [x22, #48]
Lloh20:
	adrp	x3, l_.str.1@PAGE
Lloh21:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_msgq_str
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_27
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_log_end
	mov	x0, x20
	mov	x1, x19
	bl	_mark_end
Lloh22:
	adrp	x8, _F_RCV_NORM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _F_RCV_NORM@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_28
LBB0_17:
	ldr	w0, [x19, #8]
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.18:
	bl	_close
LBB0_19:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_21
; %bb.20:
	bl	_free
LBB0_21:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_23
; %bb.22:
	bl	_free
LBB0_23:
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_25
; %bb.24:
	ldr	x0, [x19, #24]
	bl	_free
LBB0_25:
	mov	x0, x19
	bl	_free
LBB0_26:
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_28:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_31
; %bb.29:
	bl	_unlink
	cbz	x0, LBB0_31
; %bb.30:
Lloh25:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	x2, [x19, #40]
Lloh28:
	adrp	x3, l_.str.2@PAGE
Lloh29:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_msgq_str
LBB0_31:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_17
; %bb.32:
	bl	_unlink
	cbz	x0, LBB0_17
; %bb.33:
Lloh30:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	x2, [x19, #32]
Lloh33:
	adrp	x3, l_.str.3@PAGE
Lloh34:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_msgq_str
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_FR_CURSORSET,4,2               ; @FR_CURSORSET
	.comm	_FR_DONTDELETE,4,2              ; @FR_DONTDELETE
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"240|%s: remove"

	.comm	_FR_TMPFILE,4,2                 ; @FR_TMPFILE
	.comm	_q,4,2                          ; @q
l_.str.1:                               ; @.str.1
	.asciz	"241|%s: close"

	.comm	_F_RCV_NORM,4,2                 ; @F_RCV_NORM
l_.str.2:                               ; @.str.2
	.asciz	"242|%s: remove"

l_.str.3:                               ; @.str.3
	.asciz	"243|%s: remove"

.subsections_via_symbols
