	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addelem_tty
_addelem_tty:                           ## @addelem_tty
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	(%rbx), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movb	$0, (%rbx)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movb	$0, (%rax)
	movsbl	(%r12), %eax
	cmpl	$47, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$99, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_21
LBB0_3:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_strlcpy
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_strlcat
	movq	__PATH_TTY@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movq	__PATH_PTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movq	__PATH_CONSOLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_22
## %bb.6:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_strlcpy
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_strlcat
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_27
LBB0_7:
	movq	__PATH_PTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_strlcpy
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_strlcat
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_28
LBB0_22:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_9:
	movq	%r12, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_10:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.12:
	movl	-60(%rbp), %edi
	callq	_S_ISCHR
	testq	%rax, %rax
	je	LBB0_18
LBB0_13:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jl	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_expand_list
	movq	(%rbx), %rax
LBB0_15:
	movl	-64(%rbp), %ecx
	movq	16(%rbx), %rdx
	leaq	1(%rax), %rsi
	movq	%rsi, (%rbx)
	movl	%ecx, (%rdx,%rax,4)
	movl	$1, %eax
	jmp	LBB0_25
LBB0_16:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	cmpb	$0, (%rsi)
	je	LBB0_20
## %bb.17:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_xo_warn
	jmp	LBB0_24
LBB0_18:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	cmpb	$0, (%rsi)
	je	LBB0_23
## %bb.19:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_xo_warnx
	jmp	LBB0_24
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_xo_warn
	jmp	LBB0_24
LBB0_21:
	movq	__PATH_CONSOLE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_11
	jmp	LBB0_13
LBB0_23:
	leaq	L_.str.4(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_xo_warnx
LBB0_24:
	movq	_optfatal@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
LBB0_25:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_29
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movl	-60(%rbp), %edi
	callq	_S_ISCHR
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_7
LBB0_28:
	movl	-60(%rbp), %edi
	callq	_S_ISCHR
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_13
	jmp	LBB0_11
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"co"

	.comm	__PATH_CONSOLE,8,3              ## @_PATH_CONSOLE
	.comm	__PATH_DEV,4,2                  ## @_PATH_DEV
	.comm	__PATH_TTY,4,2                  ## @_PATH_TTY
	.comm	__PATH_PTS,4,2                  ## @_PATH_PTS
L_.str.1:                               ## @.str.1
	.asciz	"%s, %s, and %s"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.comm	_optfatal,4,2                   ## @optfatal
L_.str.3:                               ## @.str.3
	.asciz	"%s, %s, and %s: Not a terminal"

L_.str.4:                               ## @.str.4
	.asciz	"%s: Not a terminal"

	.no_dead_strip	_addelem_tty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addelem_tty
_addelem_tty:                           ; @addelem_tty
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x23, x1
	mov	x19, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
	ldr	w25, [x8]
	mov	x9, x25
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x25, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	ldr	w24, [x8]
	mov	x9, x24
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x12, x9, #0x1fffffff0
	sub	x21, x8, x12
	mov	sp, x21
	mov	x9, x24
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
	strb	wzr, [x21]
	strb	wzr, [x22]
	ldrsb	w8, [x1]
	cmp	w8, #47
	b.eq	LBB0_9
; %bb.1:
	cmp	w8, #99
	b.ne	LBB0_3
; %bb.2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbz	w0, LBB0_20
LBB0_3:
Lloh13:
	adrp	x8, __PATH_DEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, __PATH_DEV@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x25
	bl	_strlcpy
	mov	x0, x20
	mov	x1, x23
	mov	x2, x25
	bl	_strlcat
Lloh16:
	adrp	x28, __PATH_TTY@GOTPAGE
Lloh17:
	ldr	x28, [x28, __PATH_TTY@GOTPAGEOFF]
	ldr	w25, [x28]
	mov	x0, x25
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x25
	bl	_strncmp
	cbz	w0, LBB0_10
; %bb.4:
Lloh18:
	adrp	x27, __PATH_PTS@GOTPAGE
Lloh19:
	ldr	x27, [x27, __PATH_PTS@GOTPAGEOFF]
	ldr	w25, [x27]
	mov	x0, x25
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x25
	bl	_strncmp
	cbz	w0, LBB0_10
; %bb.5:
Lloh20:
	adrp	x8, __PATH_CONSOLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, __PATH_CONSOLE@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.6:
	ldr	w1, [x28]
	mov	x0, x21
	mov	x2, x24
	bl	_strlcpy
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_strlcat
	sub	x1, x29, #96
	mov	x0, x21
	bl	_stat
	cbz	w0, LBB0_25
LBB0_7:
	ldr	w1, [x27]
	mov	x0, x22
	mov	x2, x24
	bl	_strlcpy
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_strlcat
	sub	x1, x29, #96
	mov	x0, x22
	bl	_stat
	cbnz	w0, LBB0_10
; %bb.8:
	ldur	w0, [x29, #-92]
	bl	_S_ISCHR
	cbnz	x0, LBB0_12
	b	LBB0_10
LBB0_9:
	mov	x20, x23
LBB0_10:
	sub	x1, x29, #96
	mov	x0, x20
	bl	_stat
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.11:
	ldur	w0, [x29, #-92]
	bl	_S_ISCHR
	cbz	x0, LBB0_17
LBB0_12:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.lt	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_expand_list
	ldr	x8, [x19]
LBB0_14:
	ldur	w9, [x29, #-96]
	ldr	x10, [x19, #16]
	add	x11, x8, #1
	str	x11, [x19]
	str	w9, [x10, x8, lsl #2]
	mov	w0, #1
	b	LBB0_23
LBB0_15:
	ldrb	w8, [x22]
	cbz	w8, LBB0_19
; %bb.16:
	stp	x21, x20, [sp, #-16]!
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_xo_warn
	add	sp, sp, #16
	b	LBB0_22
LBB0_17:
	ldrb	w8, [x22]
	cbz	w8, LBB0_21
; %bb.18:
	stp	x21, x20, [sp, #-16]!
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_xo_warnx
	add	sp, sp, #16
	b	LBB0_22
LBB0_19:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_xo_warn
	b	LBB0_22
LBB0_20:
Lloh29:
	adrp	x8, __PATH_CONSOLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, __PATH_CONSOLE@GOTPAGEOFF]
Lloh31:
	ldr	x20, [x8]
	cbnz	x20, LBB0_10
	b	LBB0_12
LBB0_21:
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_xo_warnx
LBB0_22:
	mov	w0, #0
Lloh34:
	adrp	x8, _optfatal@GOTPAGE
Lloh35:
	ldr	x8, [x8, _optfatal@GOTPAGEOFF]
	mov	w9, #1
Lloh36:
	str	w9, [x8]
LBB0_23:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.24:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	ldur	w0, [x29, #-92]
	bl	_S_ISCHR
	cbnz	x0, LBB0_12
	b	LBB0_7
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"co"

	.comm	__PATH_CONSOLE,8,3              ; @_PATH_CONSOLE
	.comm	__PATH_DEV,4,2                  ; @_PATH_DEV
	.comm	__PATH_TTY,4,2                  ; @_PATH_TTY
	.comm	__PATH_PTS,4,2                  ; @_PATH_PTS
l_.str.1:                               ; @.str.1
	.asciz	"%s, %s, and %s"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.comm	_optfatal,4,2                   ; @optfatal
l_.str.3:                               ; @.str.3
	.asciz	"%s, %s, and %s: Not a terminal"

l_.str.4:                               ; @.str.4
	.asciz	"%s: Not a terminal"

	.no_dead_strip	_addelem_tty
.subsections_via_symbols
