	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function teken_subr_set_dec_mode
_teken_subr_set_dec_mode:               ## @teken_subr_set_dec_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	leal	-1(%rsi), %eax
	cmpl	$46, %eax
	ja	LBB0_1
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_TS_CURSORKEYS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	cmpl	$1000, %esi                     ## imm = 0x3E8
	jne	LBB0_18
## %bb.2:
	movq	_TP_MOUSE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_18:
	leaq	L_.str.5(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_teken_printf                   ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_8:
	movq	_TP_132COLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_teken_funcs_param
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_teken_subr_reset_to_initial_state ## TAILCALL
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_10:
	movq	_TS_ORIGIN@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	movl	12(%rbx), %edx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	%edx, 16(%rbx)
	movl	%edx, 8(%rbx)
	movl	$0, 4(%rbx)
	movq	_TS_WRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_teken_funcs_cursor             ## TAILCALL
LBB0_11:
	movq	_TS_AUTOWRAP@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_12:
	movq	_TP_AUTOREPEAT@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_14:
	movq	_TP_SHOWCURSOR@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_teken_funcs_param              ## TAILCALL
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_7
LBB0_17:
	leaq	L_.str.4(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_teken_printf                   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_18
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_14
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_15
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_TS_CURSORKEYS,4,2              ## @TS_CURSORKEYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DECSET VT52\n"

	.comm	_TP_132COLS,4,2                 ## @TP_132COLS
L_.str.1:                               ## @.str.1
	.asciz	"DECSET inverse video\n"

	.comm	_TS_ORIGIN,4,2                  ## @TS_ORIGIN
	.comm	_TS_WRAPPED,4,2                 ## @TS_WRAPPED
	.comm	_TS_AUTOWRAP,4,2                ## @TS_AUTOWRAP
	.comm	_TP_AUTOREPEAT,4,2              ## @TP_AUTOREPEAT
	.comm	_TP_SHOWCURSOR,4,2              ## @TP_SHOWCURSOR
L_.str.2:                               ## @.str.2
	.asciz	"DECSET allow 132\n"

L_.str.3:                               ## @.str.3
	.asciz	"DECSET reverse wraparound\n"

L_.str.4:                               ## @.str.4
	.asciz	"Switch away from alternate buffer\n"

	.comm	_TP_MOUSE,4,2                   ## @TP_MOUSE
L_.str.5:                               ## @.str.5
	.asciz	"Unknown DECSET: %u\n"

	.no_dead_strip	_teken_subr_set_dec_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function teken_subr_set_dec_mode
_teken_subr_set_dec_mode:               ; @teken_subr_set_dec_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	sub	w8, w1, #1
	cmp	w8, #46
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _TS_CURSORKEYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TS_CURSORKEYS@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	cmp	w1, #1000
	b.ne	LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _TP_MOUSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TP_MOUSE@GOTPAGEOFF]
	b	LBB0_15
LBB0_5:
	str	x1, [sp]
Lloh6:
	adrp	x0, l_.str.5@PAGE
Lloh7:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_teken_printf
	b	LBB0_12
LBB0_6:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_19
LBB0_7:
Lloh10:
	adrp	x8, _TP_132COLS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TP_132COLS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_teken_funcs_param
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_teken_subr_reset_to_initial_state
LBB0_8:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_9:
Lloh15:
	adrp	x8, _TS_ORIGIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TS_ORIGIN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	ldr	w9, [x19, #12]
	str	w9, [x19, #16]
	stp	wzr, w9, [x19, #4]
	str	w8, [x19]
Lloh18:
	adrp	x9, _TS_WRAPPED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TS_WRAPPED@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_teken_funcs_cursor
LBB0_10:
Lloh21:
	adrp	x8, _TS_AUTOWRAP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TS_AUTOWRAP@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
Lloh23:
	adrp	x8, _TP_AUTOREPEAT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TP_AUTOREPEAT@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh25:
	adrp	x8, _TP_SHOWCURSOR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TP_SHOWCURSOR@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_teken_funcs_param
LBB0_16:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_17:
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_teken_printf
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
                                        ; -- End function
	.comm	_TS_CURSORKEYS,4,2              ; @TS_CURSORKEYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DECSET VT52\n"

	.comm	_TP_132COLS,4,2                 ; @TP_132COLS
l_.str.1:                               ; @.str.1
	.asciz	"DECSET inverse video\n"

	.comm	_TS_ORIGIN,4,2                  ; @TS_ORIGIN
	.comm	_TS_WRAPPED,4,2                 ; @TS_WRAPPED
	.comm	_TS_AUTOWRAP,4,2                ; @TS_AUTOWRAP
	.comm	_TP_AUTOREPEAT,4,2              ; @TP_AUTOREPEAT
	.comm	_TP_SHOWCURSOR,4,2              ; @TP_SHOWCURSOR
l_.str.2:                               ; @.str.2
	.asciz	"DECSET allow 132\n"

l_.str.3:                               ; @.str.3
	.asciz	"DECSET reverse wraparound\n"

l_.str.4:                               ; @.str.4
	.asciz	"Switch away from alternate buffer\n"

	.comm	_TP_MOUSE,4,2                   ; @TP_MOUSE
l_.str.5:                               ; @.str.5
	.asciz	"Unknown DECSET: %u\n"

	.no_dead_strip	_teken_subr_set_dec_mode
.subsections_via_symbols
