	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cl_ex_init
_cl_ex_init:                            ## @cl_ex_init
	.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, %r14
	callq	_CLP
	movq	%rax, %rbx
	movq	_CL_SCR_EX_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	_CL_STDIN_TTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	leaq	56(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_cl_getcap
	leaq	32(%rbx), %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_cl_getcap
	leaq	24(%rbx), %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_cl_getcap
	leaq	48(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_cl_getcap
	movq	%rbx, %rdx
	addq	$40, %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_cl_getcap
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%r15)
	jne	LBB0_7
## %bb.4:
	callq	_free
	movq	$0, (%r12)
LBB0_5:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_free
	movq	$0, (%r15)
LBB0_7:
	movl	20(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	12(%rbx), %rcx
	movq	%rcx, (%rbx)
	movq	_ECHO@GOTPCREL(%rip), %rdx
	movq	_ECHOE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movq	_ECHOK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movq	_ICANON@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movq	_IEXTEN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movq	_ISIG@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	orl	%esi, %ecx
	movl	%ecx, (%rbx)
	movq	_ICRNL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%rbx)
	movq	_OPOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_8:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_TCSADRAIN@GOTPCREL(%rip), %r12
	movq	_TCSASOFT@GOTPCREL(%rip), %r15
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	orl	(%r12), %esi
	movq	%rbx, %rdx
	callq	_tcsetattr
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	je	LBB0_9
## %bb.11:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_msgq
	movl	$1, %eax
	jmp	LBB0_14
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	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_STDIN_TTY,4,2               ## @CL_STDIN_TTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cup"

L_.str.1:                               ## @.str.1
	.asciz	"smso"

L_.str.2:                               ## @.str.2
	.asciz	"rmso"

L_.str.3:                               ## @.str.3
	.asciz	"el"

L_.str.4:                               ## @.str.4
	.asciz	"cuu1"

	.comm	_ECHO,4,2                       ## @ECHO
	.comm	_ECHOE,4,2                      ## @ECHOE
	.comm	_ECHOK,4,2                      ## @ECHOK
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_IEXTEN,4,2                     ## @IEXTEN
	.comm	_ISIG,4,2                       ## @ISIG
	.comm	_ICRNL,4,2                      ## @ICRNL
	.comm	_OPOST,4,2                      ## @OPOST
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
	.comm	_TCSASOFT,4,2                   ## @TCSASOFT
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
L_.str.5:                               ## @.str.5
	.asciz	"tcsetattr"

	.comm	_ECHOCTL,4,2                    ## @ECHOCTL
	.comm	_ECHOKE,4,2                     ## @ECHOKE
	.comm	_ONLCR,4,2                      ## @ONLCR
	.no_dead_strip	_cl_ex_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cl_ex_init
_cl_ex_init:                            ; @cl_ex_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_CLP
	mov	x20, x0
Lloh0:
	adrp	x8, _CL_SCR_EX_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CL_SCR_EX_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_F_ISSET
	cbnz	x0, LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _CL_STDIN_TTY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CL_STDIN_TTY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_F_ISSET
	cbz	x0, LBB0_12
; %bb.2:
	add	x2, x20, #56
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_cl_getcap
	add	x22, x20, #32
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_cl_getcap
	add	x21, x20, #24
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_cl_getcap
	add	x2, x20, #48
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_cl_getcap
	add	x2, x20, #40
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_cl_getcap
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x21]
	cbnz	x8, LBB0_7
; %bb.4:
	bl	_free
	str	xzr, [x22]
LBB0_5:
	ldr	x0, [x21]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_free
	str	xzr, [x21]
LBB0_7:
	ldr	w8, [x20, #20]
	str	w8, [x20, #8]
	ldur	x9, [x20, #12]
	str	x9, [x20]
Lloh16:
	adrp	x10, _ECHO@GOTPAGE
Lloh17:
	ldr	x10, [x10, _ECHO@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x11, _ECHOE@GOTPAGE
Lloh20:
	ldr	x11, [x11, _ECHOE@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh22:
	adrp	x11, _ECHOK@GOTPAGE
Lloh23:
	ldr	x11, [x11, _ECHOK@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
Lloh25:
	adrp	x12, _ICANON@GOTPAGE
Lloh26:
	ldr	x12, [x12, _ICANON@GOTPAGEOFF]
	orr	w10, w10, w11
Lloh27:
	ldr	w11, [x12]
	orr	w10, w10, w11
Lloh28:
	adrp	x11, _IEXTEN@GOTPAGE
Lloh29:
	ldr	x11, [x11, _IEXTEN@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh31:
	adrp	x11, _ISIG@GOTPAGE
Lloh32:
	ldr	x11, [x11, _ISIG@GOTPAGEOFF]
Lloh33:
	ldr	w11, [x11]
	orr	w10, w10, w11
	orr	w9, w10, w9
	str	w9, [x20]
Lloh34:
	adrp	x9, _ICRNL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _ICRNL@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _OPOST@GOTPAGE
Lloh38:
	ldr	x10, [x10, _OPOST@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh39:
	ldr	w9, [x10]
	ldr	w10, [x20, #4]
	orr	w9, w10, w9
	stp	w9, w8, [x20, #4]
LBB0_8:
Lloh40:
	adrp	x21, _STDIN_FILENO@GOTPAGE
Lloh41:
	ldr	x21, [x21, _STDIN_FILENO@GOTPAGEOFF]
Lloh42:
	adrp	x22, _TCSADRAIN@GOTPAGE
Lloh43:
	ldr	x22, [x22, _TCSADRAIN@GOTPAGEOFF]
Lloh44:
	adrp	x23, _TCSASOFT@GOTPAGE
Lloh45:
	ldr	x23, [x23, _TCSASOFT@GOTPAGEOFF]
Lloh46:
	adrp	x24, _errno@GOTPAGE
Lloh47:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh48:
	adrp	x25, _EINTR@GOTPAGE
Lloh49:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w1, w9, w8
	mov	x2, x20
	bl	_tcsetattr
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.11:
Lloh50:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh51:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x2, l_.str.5@PAGE
Lloh54:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_msgq
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_CL_SCR_EX_INIT,4,2             ; @CL_SCR_EX_INIT
	.comm	_CL_STDIN_TTY,4,2               ; @CL_STDIN_TTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cup"

l_.str.1:                               ; @.str.1
	.asciz	"smso"

l_.str.2:                               ; @.str.2
	.asciz	"rmso"

l_.str.3:                               ; @.str.3
	.asciz	"el"

l_.str.4:                               ; @.str.4
	.asciz	"cuu1"

	.comm	_ECHO,4,2                       ; @ECHO
	.comm	_ECHOE,4,2                      ; @ECHOE
	.comm	_ECHOK,4,2                      ; @ECHOK
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_IEXTEN,4,2                     ; @IEXTEN
	.comm	_ISIG,4,2                       ; @ISIG
	.comm	_ICRNL,4,2                      ; @ICRNL
	.comm	_OPOST,4,2                      ; @OPOST
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
	.comm	_TCSASOFT,4,2                   ; @TCSASOFT
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
l_.str.5:                               ; @.str.5
	.asciz	"tcsetattr"

	.comm	_ECHOCTL,4,2                    ; @ECHOCTL
	.comm	_ECHOKE,4,2                     ; @ECHOKE
	.comm	_ONLCR,4,2                      ; @ONLCR
	.no_dead_strip	_cl_ex_init
.subsections_via_symbols
