	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_term_tab_set                   ## -- Begin function term_tab_set
	.p2align	4, 0x90
_term_tab_set:                          ## @term_tab_set
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movb	(%rsi), %r14b
	cmpb	$84, %r14b
	jne	LBB0_6
## %bb.4:
	cmpb	$0, 1(%rsi)
	je	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	cmpb	$43, %r14b
	sete	%al
	addq	%rax, %rsi
	movq	_SCALE_EM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_a2roffsu
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movb	_term_tab_set.recording_period(%rip), %r13b
	testb	%r13b, %r13b
	movl	$32, %eax
	movl	$8, %ebx
	cmovneq	%rax, %rbx
	movl	$40, %ecx
	movl	$16, %eax
	cmovneq	%rcx, %rax
	movq	_tabs@GOTPCREL(%rip), %r12
	movq	(%r12,%rax), %rsi
	cmpq	%rsi, (%r12,%rbx)
	jb	LBB0_9
## %bb.8:
	addq	$8, %rsi
	movq	%rsi, (%r12,%rax)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	24(%r12), %r15
	leaq	48(%r12), %rax
	testb	%r13b, %r13b
	cmovneq	%rax, %r15
	movq	(%r15), %rdi
	movl	$8, %edx
	callq	_mandoc_reallocarray
	movq	%rax, (%r15)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_9:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_term_hen
	leaq	32(%r12), %rcx
	leaq	8(%r12), %rdx
	testb	%r13b, %r13b
	cmovneq	%rcx, %rdx
	movq	16(%rdx), %rcx
	movq	(%r12,%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	cmpb	$43, %r14b
	jne	LBB0_12
## %bb.10:
	movq	(%r12,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	-8(%rcx,%rax,8), %rdx
	addq	%rdx, (%rcx,%rax,8)
LBB0_12:
	incq	(%r12,%rbx)
	jmp	LBB0_13
LBB0_1:
	movq	_tabs@GOTPCREL(%rip), %rbx
	movq	$0, 32(%rbx)
	movq	$0, 8(%rbx)
	movb	$0, _term_tab_set.recording_period(%rip)
	cmpq	$0, (%rbx)
	jne	LBB0_13
## %bb.2:
	movq	_SCALE_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	leaq	-48(%rbp), %r14
	movq	%r14, %rsi
	callq	_a2roffsu
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_term_hen
	movq	%rax, (%rbx)
	jmp	LBB0_13
LBB0_5:
	movb	$1, _term_tab_set.recording_period(%rip)
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_term_tab_set.recording_period,1,2 ## @term_tab_set.recording_period
	.comm	_tabs,56,3                      ## @tabs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".8i"

	.comm	_SCALE_IN,4,2                   ## @SCALE_IN
	.comm	_SCALE_EM,4,2                   ## @SCALE_EM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_term_tab_set                   ; -- Begin function term_tab_set
	.p2align	2
_term_tab_set:                          ; @term_tab_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	cbz	x1, LBB0_10
; %bb.1:
	ldrb	w20, [x1]
	cmp	w20, #84
	b.ne	LBB0_3
; %bb.2:
	ldrb	w8, [x1, #1]
	cbz	w8, LBB0_12
LBB0_3:
	cmp	w20, #43
	cinc	x0, x1, eq
Lloh0:
	adrp	x8, _SCALE_EM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCALE_EM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_a2roffsu
	cbz	x0, LBB0_13
; %bb.4:
	adrp	x8, _term_tab_set.recording_period@PAGE
	ldrb	w23, [x8, _term_tab_set.recording_period@PAGEOFF]
	cmp	w23, #0
	mov	w8, #8
	mov	w9, #32
	csel	x21, x9, x8, ne
Lloh3:
	adrp	x22, _tabs@GOTPAGE
Lloh4:
	ldr	x22, [x22, _tabs@GOTPAGEOFF]
	ldr	x10, [x22, x21]
	mov	w8, #16
	mov	w9, #40
	csel	x8, x9, x8, ne
	ldr	x9, [x22, x8]
	cmp	x10, x9
	b.lo	LBB0_6
; %bb.5:
	add	x1, x9, #8
	str	x1, [x22, x8]
	cmp	w23, #0
	mov	w8, #24
	mov	w9, #48
	csel	x24, x9, x8, ne
	ldr	x0, [x22, x24]
	mov	w2, #8
	bl	_mandoc_reallocarray
	str	x0, [x22, x24]
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_term_hen
	cmp	w23, #0
	mov	w8, #8
	mov	w9, #32
	csel	x8, x9, x8, ne
	add	x8, x22, x8
	ldr	x8, [x8, #16]
	ldr	x9, [x22, x21]
	str	x0, [x8, x9, lsl #3]
	cmp	w20, #43
	b.ne	LBB0_9
; %bb.7:
	ldr	x9, [x22, x21]
	cbz	x9, LBB0_9
; %bb.8:
	add	x8, x8, x9, lsl #3
	ldp	x9, x10, [x8, #-8]
	add	x9, x10, x9
	str	x9, [x8]
LBB0_9:
	ldr	x8, [x22, x21]
	add	x8, x8, #1
	str	x8, [x22, x21]
	b	LBB0_13
LBB0_10:
Lloh5:
	adrp	x20, _tabs@GOTPAGE
Lloh6:
	ldr	x20, [x20, _tabs@GOTPAGEOFF]
	str	xzr, [x20, #32]
	str	xzr, [x20, #8]
	adrp	x8, _term_tab_set.recording_period@PAGE
	strb	wzr, [x8, _term_tab_set.recording_period@PAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_13
; %bb.11:
Lloh7:
	adrp	x8, _SCALE_IN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SCALE_IN@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_a2roffsu
	add	x1, sp, #8
	mov	x0, x19
	bl	_term_hen
	str	x0, [x20]
	b	LBB0_13
LBB0_12:
	mov	w8, #1
	adrp	x9, _term_tab_set.recording_period@PAGE
	strb	w8, [x9, _term_tab_set.recording_period@PAGEOFF]
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_term_tab_set.recording_period,1,2 ; @term_tab_set.recording_period
	.comm	_tabs,56,3                      ; @tabs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".8i"

	.comm	_SCALE_IN,4,2                   ; @SCALE_IN
	.comm	_SCALE_EM,4,2                   ; @SCALE_EM
.subsections_via_symbols
