	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dosetty                        ## -- Begin function dosetty
	.p2align	4, 0x90
_dosetty:                               ## @dosetty
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_EX_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rsi, %rdi
	callq	_USE
	movq	(%r12), %rdi
	callq	_short2str
	movq	%rax, %rdi
	callq	_strsave
	movq	%rax, %rbx
	movq	_xfree@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cleanup_push
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_setname
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	addq	$8, %r12
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_3
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERR_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERR_NAME@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	callq	_short2str
	movq	%rax, %r15
	movl	$8, %edi
	movl	$1, %esi
	leaq	L_.str(%rip), %rdx
	callq	_CGETS
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_stderror
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$45, (%rdi)
	jne	LBB0_26
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, 2(%rdi)
	jne	LBB0_26
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	1(%rdi), %eax
	addl	$-97, %eax
	cmpl	$23, %eax
	ja	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	addq	$8, %r12
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r12
	movq	_ED_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r12
	movq	_QU_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r12
	movq	_EX_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_26:
	movq	_didsetty@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movslq	%r14d, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	4(%r13), %eax
	notl	%eax
	movq	_ttylist@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movslq	(%r13), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	andl	%eax, (%rcx,%rdx,4)
LBB0_42:                                ##   in Loop: Header=BB0_27 Depth=1
	andl	%eax, 4(%rcx,%rdx,4)
LBB0_43:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_44
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_33 Depth 2
	movb	(%rdi), %r15b
	movsbl	%r15b, %eax
	cmpl	$45, %eax
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpl	$43, %eax
	jne	LBB0_29
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	incq	%rdi
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	xorl	%r15d, %r15d
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	callq	_short2str
	movq	%rax, %rbx
	movq	_modelist@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	8(%r13), %edi
	testl	%edi, %edi
	je	LBB0_36
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=2
	movl	20(%r13), %edi
	addq	$12, %r13
	testl	%edi, %edi
	jne	LBB0_33
LBB0_36:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	_ERR_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERR_NAME@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	$8, %edi
	movl	$2, %esi
	leaq	L_.str.7(%rip), %rdx
	callq	_CGETS
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_stderror
LBB0_37:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$8, %r12
	movsbl	%r15b, %eax
	cmpl	$45, %eax
	je	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpl	$43, %eax
	jne	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	4(%r13), %eax
	movq	_ttylist@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movslq	(%r13), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	orl	%eax, (%rcx,%rdx,4)
	notl	%eax
	jmp	LBB0_42
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	4(%r13), %eax
	movl	%eax, %ecx
	notl	%ecx
	movq	_ttylist@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rdx,%rsi,8), %rdx
	movslq	(%r13), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	andl	%ecx, (%rdx,%rsi,4)
	orl	%eax, 4(%rdx,%rsi,4)
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_27 Depth=1
	cmpl	$0, 8(%r13)
	jne	LBB0_37
	jmp	LBB0_36
LBB0_1:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_13:
	movq	_didsetty@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_modelist@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpl	$0, 8(%rbx)
	je	LBB0_25
## %bb.14:
	movslq	%r14d, %r13
	movl	$-1, %r14d
	movq	_ttylist@GOTPCREL(%rip), %r15
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
LBB0_23:                                ##   in Loop: Header=BB0_15 Depth=1
	leaq	L_.str.6(%rip), %rdi
	movl	%edx, %esi
	xorl	%eax, %eax
	callq	_xprintf
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	_ttylist@GOTPCREL(%rip), %r15
	cmpl	$0, 20(%rbx)
	leaq	12(%rbx), %rbx
	je	LBB0_25
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %rax
	cmpl	%r14d, %eax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movslq	%r14d, %r12
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$-1, %r14d
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rcx, %rsi
	movq	(%r15), %rcx
	movq	(%rcx,%r13,8), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	8(%rcx,%rax,4), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_xprintf
	movl	(%rbx), %r14d
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rax
	movslq	%r14d, %r12
	leaq	(%r12,%r12,2), %rcx
	movl	8(%rax,%rcx,4), %edi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%edi, %edi
	cmpl	$-1, %r14d
	setne	%dil
	callq	_assert
	movq	(%r15), %rax
	movq	(%rax,%r13,8), %rax
	leaq	(%r12,%r12,2), %rcx
	movl	4(%rbx), %edx
	movl	(%rax,%rcx,4), %r13d
	andl	%edx, %r13d
	movl	$43, %esi
	cmovnel	%esi, %r13d
	testl	%edx, 4(%rax,%rcx,4)
	movl	$45, %eax
	cmovnel	%eax, %r13d
	movl	%r13d, %eax
	orl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	8(%rbx), %edi
	callq	_strlen
	movl	%eax, %r12d
	cmpl	$1, %r13d
	sbbl	$-1, %r12d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addl	%r12d, %ecx
	incl	%ecx
	movq	_TermH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jl	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	incl	%r12d
	leaq	L_.str.4(%rip), %rdi
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_xprintf
	addl	%r15d, %r12d
	movl	%r12d, %ecx
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	8(%rbx), %edx
	testl	%r13d, %r13d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	leaq	L_.str.5(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_xprintf
	jmp	LBB0_24
LBB0_25:
	movl	$10, %edi
	callq	_xputchar
LBB0_44:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cleanup_until                  ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_EX_IO,4,2                      ## @EX_IO
	.comm	_xfree,4,2                      ## @xfree
	.comm	_ED_IO,4,2                      ## @ED_IO
	.comm	_QU_IO,4,2                      ## @QU_IO
	.comm	_ERR_NAME,4,2                   ## @ERR_NAME
	.comm	_ERR_SYSTEM,4,2                 ## @ERR_SYSTEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown switch"

	.comm	_didsetty,4,2                   ## @didsetty
	.comm	_modelist,8,3                   ## @modelist
L_.str.1:                               ## @.str.1
	.asciz	"%s%s"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_ttylist,8,3                    ## @ttylist
	.comm	_TermH,4,2                      ## @TermH
L_.str.4:                               ## @.str.4
	.asciz	"\n%*s"

L_.str.5:                               ## @.str.5
	.asciz	"%c%s "

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

L_.str.7:                               ## @.str.7
	.asciz	"Invalid argument"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dosetty                        ; -- Begin function dosetty
	.p2align	2
_dosetty:                               ; @dosetty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x0
Lloh0:
	adrp	x27, _EX_IO@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EX_IO@GOTPAGEOFF]
	ldr	w19, [x27]
	mov	x0, x1
	bl	_USE
	ldr	x0, [x20]
	bl	_short2str
	bl	_strsave
	mov	x21, x0
Lloh2:
	adrp	x8, _xfree@GOTPAGE
Lloh3:
	ldr	x8, [x8, _xfree@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_cleanup_push
	mov	x0, x21
	bl	_setname
	ldr	x0, [x20, #8]!
	str	x21, [sp, #24]                  ; 8-byte Folded Spill
	mov	w25, #0
	cbz	x0, LBB0_12
; %bb.1:
Lloh5:
	adrp	x24, l_.str@PAGE
Lloh6:
	add	x24, x24, l_.str@PAGEOFF
Lloh7:
	adrp	x26, _ED_IO@GOTPAGE
Lloh8:
	ldr	x26, [x26, _ED_IO@GOTPAGEOFF]
Lloh9:
	adrp	x21, _QU_IO@GOTPAGE
Lloh10:
	ldr	x21, [x21, _QU_IO@GOTPAGEOFF]
Lloh11:
	adrp	x28, lJTI0_0@PAGE
Lloh12:
	add	x28, x28, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _ERR_NAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_NAME@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _ERR_SYSTEM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ERR_SYSTEM@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w22, w9, w8
	bl	_short2str
	mov	x23, x0
	mov	w0, #8
	mov	w1, #1
	mov	x2, x24
	bl	_CGETS
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_stderror
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20]
	cbz	x0, LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0]
	cmp	w8, #45
	b.ne	LBB0_26
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x0, #2]
	cbnz	w8, LBB0_26
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsb	w8, [x0, #1]
	sub	w8, w8, #97
	cmp	w8, #23
	b.hi	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	add	x20, x20, #8
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #8
	ldr	w19, [x26]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #8
	ldr	w19, [x21]
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #8
	ldr	w19, [x27]
	b	LBB0_3
LBB0_12:
Lloh19:
	adrp	x8, _didsetty@GOTPAGE
Lloh20:
	ldr	x8, [x8, _didsetty@GOTPAGEOFF]
	mov	w9, #1
Lloh21:
	str	w9, [x8]
Lloh22:
	adrp	x8, _modelist@GOTPAGE
Lloh23:
	ldr	x8, [x8, _modelist@GOTPAGEOFF]
Lloh24:
	ldr	x27, [x8]
	ldr	w8, [x27, #8]
	cbz	w8, LBB0_25
; %bb.13:
	mov	w23, #0
	mov	w24, #0
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	sxtw	x28, w19
Lloh25:
	adrp	x21, _ttylist@GOTPAGE
Lloh26:
	ldr	x21, [x21, _ttylist@GOTPAGEOFF]
	mov	w26, #-1
	mov	w19, #12
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_17 Depth=1
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	bl	_xprintf
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x27, #20]
	add	x27, x27, #12
	cbz	w8, LBB0_25
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x27]
	cmp	w8, w26
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	sxtw	x22, w26
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	cmn	w26, #1
Lloh29:
	adrp	x9, l_.str.3@PAGE
Lloh30:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh31:
	adrp	x10, l_.str.2@PAGE
Lloh32:
	add	x10, x10, l_.str.2@PAGEOFF
	csel	x9, x9, x10, eq
	ldr	x10, [x21]
	lsl	x20, x28, #3
	ldr	x10, [x10, x20]
	madd	x8, x8, x19, x10
	ldr	w8, [x8, #8]
	stp	x9, x8, [sp]
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_xprintf
	ldr	w26, [x27]
	ldr	x8, [x21]
	ldr	x8, [x8, x20]
	sxtw	x22, w26
	smaddl	x8, w26, w19, x8
	ldr	w0, [x8, #8]
	bl	_strlen
	mov	x24, x0
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	mov	x23, x0
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=1
	cmn	w26, #1
	cset	w0, ne
	bl	_assert
	ldr	x8, [x21]
	ldr	x8, [x8, x28, lsl #3]
	madd	x8, x22, x19, x8
	ldr	w9, [x27, #4]
	ldp	w10, w8, [x8]
	tst	w9, w10
	mov	w10, #43
	csel	w10, wzr, w10, eq
	tst	w8, w9
	mov	w8, #45
	csel	w22, w10, w8, eq
	orr	w8, w22, w25
	cbz	w8, LBB0_16
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w0, [x27, #8]
	bl	_strlen
	cmp	w22, #0
	mov	w8, #1
	cinc	w8, w8, ne
	add	w20, w8, w0
	add	w24, w20, w24
Lloh35:
	adrp	x8, _TermH@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TermH@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
Lloh38:
	adrp	x8, l_.str.3@PAGE
Lloh39:
	add	x8, x8, l_.str.3@PAGEOFF
	stp	x23, x8, [sp]
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_xprintf
	add	w24, w20, w23
LBB0_23:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x27, #8]
	cbz	w22, LBB0_14
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
	stp	x22, x8, [sp]
Lloh42:
	adrp	x0, l_.str.5@PAGE
Lloh43:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_25:
	mov	w0, #10
	bl	_xputchar
	b	LBB0_43
LBB0_26:
Lloh44:
	adrp	x8, _didsetty@GOTPAGE
Lloh45:
	ldr	x8, [x8, _didsetty@GOTPAGEOFF]
	mov	w9, #1
Lloh46:
	str	w9, [x8]
Lloh47:
	adrp	x25, _modelist@GOTPAGE
Lloh48:
	ldr	x25, [x25, _modelist@GOTPAGEOFF]
	sxtw	x19, w19
Lloh49:
	adrp	x21, l_.str.7@PAGE
Lloh50:
	add	x21, x21, l_.str.7@PAGEOFF
Lloh51:
	adrp	x27, _ttylist@GOTPAGE
Lloh52:
	ldr	x27, [x27, _ttylist@GOTPAGEOFF]
	mov	w28, #12
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8, x19, lsl #3]
	ldp	w10, w9, [x26]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	mul	x10, x10, x28
	ldr	d0, [x8, x10]
	mvn	w9, w9
	dup.2s	v1, w9
	and.8b	v0, v0, v1
	str	d0, [x8, x10]
	ldr	x0, [x20, #8]!
	cbz	x0, LBB0_43
LBB0_28:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_33 Depth 2
	ldrsb	w8, [x0]
	cmp	w8, #45
	b.eq	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	cmp	w8, #43
	b.ne	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_28 Depth=1
	and	w24, w8, #0xff
	add	x0, x0, #1
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_28 Depth=1
	mov	w24, #0
LBB0_32:                                ;   in Loop: Header=BB0_28 Depth=1
	bl	_short2str
	mov	x22, x0
	ldr	x26, [x25]
	ldr	w0, [x26, #8]
	cbz	w0, LBB0_35
LBB0_33:                                ;   Parent Loop BB0_28 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	add	x23, x26, #12
	ldr	w0, [x26, #20]
	mov	x26, x23
	cbnz	w0, LBB0_33
	b	LBB0_40
LBB0_35:                                ;   in Loop: Header=BB0_28 Depth=1
	mov	x23, x26
	b	LBB0_40
LBB0_36:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	w8, [x26, #8]
	mov	x23, x26
	cbz	w8, LBB0_40
; %bb.37:                               ;   in Loop: Header=BB0_28 Depth=1
	cmp	w24, #45
	b.eq	LBB0_41
LBB0_38:                                ;   in Loop: Header=BB0_28 Depth=1
	sxtb	w8, w24
	cmp	w8, #43
	b.ne	LBB0_27
; %bb.39:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8, x19, lsl #3]
	ldp	w10, w9, [x26]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	madd	x8, x10, x28, x8
	ldp	w10, w11, [x8]
	orr	w10, w10, w9
	bic	w9, w11, w9
	b	LBB0_42
LBB0_40:                                ;   in Loop: Header=BB0_28 Depth=1
Lloh53:
	adrp	x8, _ERR_NAME@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ERR_NAME@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
Lloh56:
	adrp	x9, _ERR_SYSTEM@GOTPAGE
Lloh57:
	ldr	x9, [x9, _ERR_SYSTEM@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w26, w9, w8
	mov	w0, #8
	mov	w1, #2
	mov	x2, x21
	bl	_CGETS
	mov	x2, x0
	mov	x0, x26
	mov	x1, x22
	bl	_stderror
	mov	x26, x23
	cmp	w24, #45
	b.ne	LBB0_38
LBB0_41:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8, x19, lsl #3]
	ldp	w10, w9, [x26]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	madd	x8, x10, x28, x8
	ldp	w10, w11, [x8]
	bic	w10, w10, w9
	orr	w9, w11, w9
LBB0_42:                                ;   in Loop: Header=BB0_28 Depth=1
	stp	w10, w9, [x8]
	ldr	x0, [x20, #8]!
	cbnz	x0, LBB0_28
LBB0_43:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_cleanup_until
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_EX_IO,4,2                      ; @EX_IO
	.comm	_xfree,4,2                      ; @xfree
	.comm	_ED_IO,4,2                      ; @ED_IO
	.comm	_QU_IO,4,2                      ; @QU_IO
	.comm	_ERR_NAME,4,2                   ; @ERR_NAME
	.comm	_ERR_SYSTEM,4,2                 ; @ERR_SYSTEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown switch"

	.comm	_didsetty,4,2                   ; @didsetty
	.comm	_modelist,8,3                   ; @modelist
l_.str.1:                               ; @.str.1
	.asciz	"%s%s"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_ttylist,8,3                    ; @ttylist
	.comm	_TermH,4,2                      ; @TermH
l_.str.4:                               ; @.str.4
	.asciz	"\n%*s"

l_.str.5:                               ; @.str.5
	.asciz	"%c%s "

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

l_.str.7:                               ; @.str.7
	.asciz	"Invalid argument"

.subsections_via_symbols
