	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_terminal_mdoc                  ## -- Begin function terminal_mdoc
	.p2align	4, 0x90
_terminal_mdoc:                         ## @terminal_mdoc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	24(%rdi), %eax
	movl	%eax, 28(%rdi)
	movq	32(%rdi), %rcx
	movl	%eax, (%rcx)
	xorl	%esi, %esi
	callq	_term_tab_set
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_term_tab_set
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_term_tab_set
	movq	(%r14), %rax
	movq	(%rax), %rbx
	cmpq	$0, 16(%r15)
	je	LBB0_14
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movq	_MDOC_Sh@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_SEC_SYNOPSIS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_SEC_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rbx)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rdi
	cmpq	%rdx, %rdi
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rsi, %rdi
	movl	$0, %eax
	cmoveq	%rbx, %rax
	jmp	LBB0_9
LBB0_14:
	movq	(%r15), %r12
	testq	%r12, %r12
	jne	LBB0_16
## %bb.15:
	movq	$5, (%r15)
LBB0_16:
	movq	_print_mdoc_head@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_print_mdoc_foot@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_term_begin
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.17:
	movq	_ROFFT_COMMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NODE_NOPRT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	32(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_24
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, 16(%rbx)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	testl	%ecx, 24(%rbx)
	jne	LBB0_20
## %bb.21:
	movq	(%rbx), %rax
	movq	_MDOC_Sh@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	callq	_term_vspace
LBB0_23:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_print_mdoc_nodelist
LBB0_24:
	movq	%r15, %rdi
	callq	_term_end
	movq	%r12, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_TERMP_NOSPACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_13
LBB0_2:
	movq	_TERMP_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	jmp	LBB0_13
LBB0_6:
	movq	_TERMP_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	movq	%rbx, %rax
LBB0_11:
	movq	40(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_print_mdoc_nodelist
LBB0_13:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_term_newln                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"T"

L_.str.1:                               ## @.str.1
	.asciz	".5i"

	.comm	_MDOC_Sh,8,3                    ## @MDOC_Sh
	.comm	_SEC_SYNOPSIS,8,3               ## @SEC_SYNOPSIS
	.comm	_SEC_NAME,8,3                   ## @SEC_NAME
	.comm	_TERMP_NOSPACE,4,2              ## @TERMP_NOSPACE
	.comm	_print_mdoc_head,4,2            ## @print_mdoc_head
	.comm	_print_mdoc_foot,4,2            ## @print_mdoc_foot
	.comm	_ROFFT_COMMENT,8,3              ## @ROFFT_COMMENT
	.comm	_NODE_NOPRT,4,2                 ## @NODE_NOPRT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_terminal_mdoc                  ; -- Begin function terminal_mdoc
	.p2align	2
_terminal_mdoc:                         ; @terminal_mdoc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #24]
	str	w8, [x0, #28]
	ldr	x9, [x0, #32]
	str	w8, [x9]
	mov	x1, #0
	bl	_term_tab_set
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_term_tab_set
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_term_tab_set
	ldr	x8, [x20]
	ldr	x21, [x8]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.1:
	cbz	x21, LBB0_19
; %bb.2:
	mov	x8, #0
Lloh4:
	adrp	x9, _MDOC_Sh@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MDOC_Sh@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _SEC_SYNOPSIS@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SEC_SYNOPSIS@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
Lloh10:
	adrp	x11, _SEC_NAME@GOTPAGE
Lloh11:
	ldr	x11, [x11, _SEC_NAME@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x21, #32]
	cbz	x21, LBB0_18
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x21]
	cmp	x12, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x21, #8]
	cmp	x12, x10
	b.eq	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x12, x11
	csel	x12, x21, xzr, eq
	cmp	x8, #0
	csel	x8, x8, x12, ne
	b	LBB0_3
LBB0_7:
	ldr	x22, [x19]
	cbnz	x22, LBB0_9
; %bb.8:
	mov	w8, #5
	str	x8, [x19]
LBB0_9:
Lloh13:
	adrp	x8, _print_mdoc_head@GOTPAGE
Lloh14:
	ldr	x8, [x8, _print_mdoc_head@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _print_mdoc_foot@GOTPAGE
Lloh17:
	ldr	x8, [x8, _print_mdoc_foot@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_term_begin
	cbz	x21, LBB0_17
; %bb.10:
Lloh19:
	adrp	x8, _ROFFT_COMMENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ROFFT_COMMENT@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _NODE_NOPRT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _NODE_NOPRT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x21, [x21, #32]
	cbz	x21, LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21, #16]
	cmp	x10, x8
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w10, [x21, #24]
	tst	w9, w10
	b.ne	LBB0_11
; %bb.14:
	ldr	x8, [x21]
Lloh25:
	adrp	x9, _MDOC_Sh@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MDOC_Sh@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_term_vspace
LBB0_16:
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	mov	x3, x21
	bl	_print_mdoc_nodelist
LBB0_17:
	mov	x0, x19
	bl	_term_end
	str	x22, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh28:
	adrp	x9, _TERMP_NOSPACE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TERMP_NOSPACE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
	cbnz	x8, LBB0_21
	b	LBB0_23
LBB0_19:
Lloh31:
	adrp	x8, _TERMP_NOSPACE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TERMP_NOSPACE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_23
LBB0_20:
Lloh34:
	adrp	x8, _TERMP_NOSPACE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TERMP_NOSPACE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x8, x21
LBB0_21:
	ldr	x8, [x8, #40]
	ldr	x8, [x8]
	ldr	x3, [x8]
	cbz	x3, LBB0_23
; %bb.22:
	mov	x0, x19
	mov	x1, #0
	mov	x2, x20
	bl	_print_mdoc_nodelist
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_term_newln
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"T"

l_.str.1:                               ; @.str.1
	.asciz	".5i"

	.comm	_MDOC_Sh,8,3                    ; @MDOC_Sh
	.comm	_SEC_SYNOPSIS,8,3               ; @SEC_SYNOPSIS
	.comm	_SEC_NAME,8,3                   ; @SEC_NAME
	.comm	_TERMP_NOSPACE,4,2              ; @TERMP_NOSPACE
	.comm	_print_mdoc_head,4,2            ; @print_mdoc_head
	.comm	_print_mdoc_foot,4,2            ; @print_mdoc_foot
	.comm	_ROFFT_COMMENT,8,3              ; @ROFFT_COMMENT
	.comm	_NODE_NOPRT,4,2                 ; @NODE_NOPRT
.subsections_via_symbols
