	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$2072, %rsp                     ## imm = 0x818
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	leaq	L_.str(%rip), %r12
	movq	_optarg@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_1
LBB0_28:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$84, %eax
	je	LBB0_28
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
LBB0_4:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	subl	%r12d, %ebx
	testl	%ebx, %ebx
	jg	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_usage
LBB0_6:
	testq	%r14, %r14
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edi
	callq	_errx
	xorl	%r14d, %r14d
LBB0_9:
	leaq	(%r15,%r12,8), %rbx
	leaq	-1088(%rbp), %rdi
	movq	%r14, %rsi
	callq	_tgetent
	cmpl	$1, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edi
	callq	_err
LBB0_11:
	movq	(%rbx), %r13
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testq	%r13, %r13
	jne	LBB0_12
LBB0_27:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_exit
LBB0_12:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	-2112(%rbp), %r15
	leaq	-56(%rbp), %r12
	leaq	LJTI0_0(%rip), %r14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_process
	movq	%rax, %rbx
LBB0_26:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%rbx), %r13
	addq	$8, %rbx
	testq	%r13, %r13
	je	LBB0_27
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%r13), %eax
	addl	$-99, %eax
	cmpl	$15, %eax
	ja	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	leaq	L_.str.5(%rip), %rax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	leaq	L_.str.7(%rip), %rax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	-1088(%rbp), %rdi
	callq	_prlongname
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	leaq	L_.str.10(%rip), %rax
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	cmoveq	%rax, %r13
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, -56(%rbp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_tgetstr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	callq	_tgetnum
	cmpl	$-1, %eax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.11(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
	jmp	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	callq	_tgetflag
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_26
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_16
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_21
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"T:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_optind,8,3                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"TERM"

L_.str.2:                               ## @.str.2
	.asciz	"no terminal type specified and no TERM environmental variable."

L_.str.3:                               ## @.str.3
	.asciz	"tgetent failure"

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

L_.str.5:                               ## @.str.5
	.asciz	"cl"

L_.str.6:                               ## @.str.6
	.asciz	"init"

L_.str.7:                               ## @.str.7
	.asciz	"is"

L_.str.8:                               ## @.str.8
	.asciz	"longname"

L_.str.9:                               ## @.str.9
	.asciz	"reset"

L_.str.10:                              ## @.str.10
	.asciz	"rs"

L_.str.11:                              ## @.str.11
	.asciz	"%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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, #2064
	mov	x19, x1
	mov	x21, x0
	mov	x20, #0
Lloh0:
	adrp	x23, _optarg@GOTPAGE
Lloh1:
	ldr	x23, [x23, _optarg@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x23]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_getopt
	cmp	w0, #84
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_5:
Lloh4:
	adrp	x8, _optind@GOTPAGE
Lloh5:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh6:
	ldr	x22, [x8]
	sub	w8, w21, w22
	cmp	w8, #0
	b.gt	LBB0_7
; %bb.6:
	bl	_usage
LBB0_7:
	add	x19, x19, x22, lsl #3
	cbnz	x20, LBB0_10
; %bb.8:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x20, x0
	cbnz	x0, LBB0_10
; %bb.9:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #2
	bl	_errx
LBB0_10:
	mov	x0, sp
	mov	x1, x20
	bl	_tgetent
	cmp	w0, #1
	b.eq	LBB0_12
; %bb.11:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #3
	bl	_err
LBB0_12:
	ldr	x26, [x19]
	cbnz	x26, LBB0_14
; %bb.13:
	mov	w0, #0
	bl	_exit
LBB0_14:
	mov	w20, #0
	add	x27, sp, #1024
Lloh13:
	adrp	x21, l_.str.11@PAGE
Lloh14:
	add	x21, x21, l_.str.11@PAGEOFF
Lloh15:
	adrp	x28, lJTI0_0@PAGE
Lloh16:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh17:
	adrp	x23, l_.str.6@PAGE
Lloh18:
	add	x23, x23, l_.str.6@PAGEOFF
Lloh19:
	adrp	x24, l_.str.8@PAGE
Lloh20:
	add	x24, x24, l_.str.8@PAGEOFF
Lloh21:
	adrp	x25, l_.str.9@PAGE
Lloh22:
	add	x25, x25, l_.str.9@PAGEOFF
Lloh23:
	adrp	x22, l_.str.10@PAGE
Lloh24:
	add	x22, x22, l_.str.10@PAGEOFF
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x26
	mov	x1, x25
	bl	_strcmp
	cmp	w0, #0
	csel	x26, x22, x26, eq
LBB0_16:                                ;   in Loop: Header=BB0_19 Depth=1
	stur	x27, [x29, #-96]
	sub	x1, x29, #96
	mov	x0, x26
	bl	_tgetstr
	cbz	x0, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x1, sp, #1024
	mov	x0, x26
	mov	x2, x19
	bl	_process
	mov	x19, x0
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x26, [x19, #8]!
	cbz	x26, LBB0_28
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w8, [x26]
	sub	w8, w8, #99
	cmp	w8, #15
	b.hi	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	adr	x9, LBB0_15
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x26
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
Lloh27:
	adrp	x8, l_.str.5@PAGE
Lloh28:
	add	x8, x8, l_.str.5@PAGEOFF
	csel	x26, x8, x26, eq
	b	LBB0_16
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x26
	bl	_tgetnum
	cmn	w0, #1
	b.eq	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x1, x0
	mov	x0, x21
	bl	_printf
	b	LBB0_18
LBB0_24:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x26
	mov	x1, x23
	bl	_strcmp
	cmp	w0, #0
Lloh29:
	adrp	x8, l_.str.7@PAGE
Lloh30:
	add	x8, x8, l_.str.7@PAGEOFF
	csel	x26, x8, x26, eq
	b	LBB0_16
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x26
	mov	x1, x24
	bl	_strcmp
	cbnz	w0, LBB0_16
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, sp
	bl	_prlongname
	b	LBB0_18
LBB0_27:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x26
	bl	_tgetflag
	cmp	w0, #0
	cset	w20, eq
	b	LBB0_18
LBB0_28:
	mov	x0, x20
	bl	_exit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_24-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_25-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_15-LBB0_15)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"T:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_optind,8,3                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"TERM"

l_.str.2:                               ; @.str.2
	.asciz	"no terminal type specified and no TERM environmental variable."

l_.str.3:                               ; @.str.3
	.asciz	"tgetent failure"

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

l_.str.5:                               ; @.str.5
	.asciz	"cl"

l_.str.6:                               ; @.str.6
	.asciz	"init"

l_.str.7:                               ; @.str.7
	.asciz	"is"

l_.str.8:                               ; @.str.8
	.asciz	"longname"

l_.str.9:                               ; @.str.9
	.asciz	"reset"

l_.str.10:                              ; @.str.10
	.asciz	"rs"

l_.str.11:                              ; @.str.11
	.asciz	"%d\n"

.subsections_via_symbols
