	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_quit                        ## -- Begin function cl_quit
	.p2align	4, 0x90
_cl_quit:                               ## @cl_quit
	.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
	movq	%rdi, %r15
	callq	_GCLP
	movq	%rax, %rbx
	movq	_CL_SCR_EX_INIT@GOTPCREL(%rip), %rax
	movq	_CL_SCR_VI_INIT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_cl_term_end
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
	movq	_CL_STDIN_TTY@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_cl_vi_end
	testq	%rax, %rax
	movl	$1, %eax
	cmovnel	%eax, %r14d
LBB0_5:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	movq	_CL_SCR_EX_INIT@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_cl_ex_end
	testq	%rax, %rax
	movl	$1, %eax
	cmovnel	%eax, %r14d
LBB0_8:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movq	_TCSASOFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_tcsetattr
	movl	(%r13), %esi
	orl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_F_CLR
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CL_SCR_EX_INIT,4,2             ## @CL_SCR_EX_INIT
	.comm	_CL_SCR_VI_INIT,4,2             ## @CL_SCR_VI_INIT
	.comm	_CL_STDIN_TTY,4,2               ## @CL_STDIN_TTY
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_TCSASOFT,4,2                   ## @TCSASOFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_quit                        ; -- Begin function cl_quit
	.p2align	2
_cl_quit:                               ; @cl_quit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	bl	_GCLP
	mov	x19, x0
Lloh0:
	adrp	x22, _CL_SCR_EX_INIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CL_SCR_EX_INIT@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _CL_SCR_VI_INIT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CL_SCR_VI_INIT@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w1, w9, w8
	bl	_F_ISSET
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x21
	bl	_cl_term_end
	cmp	x0, #0
	cset	w20, ne
Lloh4:
	adrp	x24, _CL_STDIN_TTY@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CL_STDIN_TTY@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_cl_vi_end
	cmp	x0, #0
	csinc	w20, w20, wzr, eq
LBB0_4:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_cl_ex_end
	cmp	x0, #0
	csinc	w20, w20, wzr, eq
LBB0_7:
Lloh6:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh8:
	adrp	x9, _TCSADRAIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TCSADRAIN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _TCSASOFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TCSASOFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x2, x19
	bl	_tcsetattr
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_F_CLR
	b	LBB0_9
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CL_SCR_EX_INIT,4,2             ; @CL_SCR_EX_INIT
	.comm	_CL_SCR_VI_INIT,4,2             ; @CL_SCR_VI_INIT
	.comm	_CL_STDIN_TTY,4,2               ; @CL_STDIN_TTY
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_TCSASOFT,4,2                   ; @TCSASOFT
.subsections_via_symbols
