	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function teken_subr_do_reset
_teken_subr_do_reset:                   ## @teken_subr_do_reset
	.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
	movq	%rdi, %rbx
	movl	80(%rdi), %eax
	movl	%eax, 84(%rdi)
	movq	$0, 32(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rdi)
	movl	56(%rdi), %eax
	movl	%eax, 24(%rdi)
	movl	24(%rdi), %eax
	movl	%eax, 40(%rdi)
	movl	28(%rdi), %eax
	movl	%eax, 44(%rdi)
	movq	32(%rdi), %rax
	movq	%rax, 48(%rdi)
	movq	_TS_8BIT@GOTPCREL(%rip), %rax
	movq	_TS_CONS25@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TS_CONS25KEYS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	andl	(%rdi), %ecx
	movl	%ecx, (%rdi)
	movq	_TS_AUTOWRAP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movq	_teken_scs_us_ascii@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%rdi), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	16(%rdi), %rcx
	movq	%rax, 8(%rcx)
	movq	$0, 8(%rdi)
	callq	_teken_subr_save_cursor
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_teken_tab_default              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_8BIT,4,2                    ## @TS_8BIT
	.comm	_TS_CONS25,4,2                  ## @TS_CONS25
	.comm	_TS_CONS25KEYS,4,2              ## @TS_CONS25KEYS
	.comm	_TS_AUTOWRAP,4,2                ## @TS_AUTOWRAP
	.comm	_teken_scs_us_ascii,8,3         ## @teken_scs_us_ascii
	.no_dead_strip	_teken_subr_do_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function teken_subr_do_reset
_teken_subr_do_reset:                   ; @teken_subr_do_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0, #80]
	str	w8, [x0, #84]
	str	xzr, [x0, #32]
	stp	xzr, xzr, [x0, #64]
	ldr	w8, [x0, #56]
	str	w8, [x0, #24]
	ldur	q0, [x0, #24]
	stur	q0, [x0, #40]
Lloh0:
	adrp	x8, _TS_8BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TS_8BIT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TS_CONS25@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TS_CONS25@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _TS_CONS25KEYS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TS_CONS25KEYS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x0]
	and	w8, w9, w8
	str	w8, [x0]
Lloh9:
	adrp	x9, _TS_AUTOWRAP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TS_AUTOWRAP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh12:
	adrp	x8, _teken_scs_us_ascii@GOTPAGE
Lloh13:
	ldr	x8, [x8, _teken_scs_us_ascii@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [x0, #16]
	str	x9, [x10]
	ldr	x8, [x8]
	ldr	x9, [x0, #16]
	str	x8, [x9, #8]
	str	xzr, [x0, #8]
	bl	_teken_subr_save_cursor
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_teken_tab_default
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_8BIT,4,2                    ; @TS_8BIT
	.comm	_TS_CONS25,4,2                  ; @TS_CONS25
	.comm	_TS_CONS25KEYS,4,2              ; @TS_CONS25KEYS
	.comm	_TS_AUTOWRAP,4,2                ; @TS_AUTOWRAP
	.comm	_teken_scs_us_ascii,8,3         ; @teken_scs_us_ascii
	.no_dead_strip	_teken_subr_do_reset
.subsections_via_symbols
