	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_roff_strdup                    ## -- Begin function roff_strdup
	.p2align	4, 0x90
_roff_strdup:                           ## @roff_strdup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)
	cmpq	$0, (%rdi)
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 8(%r12)
	je	LBB0_2
LBB0_4:
	movb	(%rsi), %al
	testb	%al, %al
	je	LBB0_20
## %bb.5:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	2(%r13), %rsi
	movq	%r15, %rdi
	callq	_mandoc_realloc
	movq	%rax, %r15
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movb	(%rax), %al
	movb	%al, (%r15,%r13)
	incq	%r13
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rax
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_19
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	notb	%al
	shrb	$7, %al
	movzbl	%al, %edi
	callq	_assert
	movq	-48(%rbp), %r14
	movsbq	(%r14), %rax
	cmpq	$92, %rax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rbx), %esi
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	32(%rbx), %rbx
	movq	-48(%rbp), %r14
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%r14), %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_mandoc_escape
	movq	_ESCAPE_ERROR@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-48(%rbp), %eax
	subl	%r14d, %eax
	movq	%r15, %rdi
	movq	%r12, %r15
	movslq	%eax, %r12
	leaq	(%r12,%r13), %rbx
	leaq	(%r12,%r13), %rsi
	incq	%rsi
	callq	_mandoc_realloc
	addq	%rax, %r13
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r15, %r12
	movq	%rax, %r15
	callq	_memcpy
	movq	%rbx, %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %edx
	shlq	$4, %rdx
	cmpq	$0, (%rcx,%rdx)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rbx
	leaq	(%rbx,%r13), %r14
	leaq	(%rbx,%r13), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_mandoc_realloc
	movq	%rax, %r15
	addq	%rax, %r13
	movq	8(%r12), %rax
	movq	-48(%rbp), %rcx
	movsbq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	incq	-48(%rbp)
	movq	%r14, %r13
	jmp	LBB0_14
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rax
	leaq	(%rax,%r13), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_mandoc_realloc
	movq	%rax, %r15
	leaq	(%rax,%r13), %rdi
	movq	16(%rbx), %rdx
	movq	24(%rbx), %rsi
	callq	_memcpy
	addq	16(%rbx), %r13
	movslq	(%rbx), %rax
	addq	%rax, -48(%rbp)
	jmp	LBB0_14
LBB0_20:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	movq	%rsi, %rdi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mandoc_strdup                  ## TAILCALL
LBB0_18:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %rbx
	leaq	(%rax,%r13), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_mandoc_realloc
	movq	%rax, %r15
	leaq	(%rax,%r13), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
LBB0_19:
	movslq	%r13d, %rax
	movb	$0, (%r15,%rax)
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_ESCAPE_ERROR,4,2               ## @ESCAPE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_roff_strdup                    ; -- Begin function roff_strdup
	.p2align	2
_roff_strdup:                           ; @roff_strdup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	str	x1, [sp, #8]
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_17
LBB0_2:
	ldrb	w8, [x1]
	cbz	w8, LBB0_16
; %bb.3:
	mov	x23, #0
	mov	x20, #0
Lloh0:
	adrp	x24, _ESCAPE_ERROR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ESCAPE_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x23, #2
	mov	x0, x20
	bl	_mandoc_realloc
	mov	x20, x0
	ldr	x8, [sp, #8]
	add	x9, x8, #1
	str	x9, [sp, #8]
	ldrb	w8, [x8]
	strb	w8, [x0, x23]
	add	x23, x23, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_20
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	eor	w8, w8, #0x80
	lsr	w0, w8, #7
	bl	_assert
	ldr	x21, [sp, #8]
	ldrsb	x8, [x21]
	cmp	x8, #92
	b.ne	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [x19]
	cbz	x22, LBB0_10
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x22, #8]
	ldr	x2, [x22]
	mov	x0, x21
	bl	_strncmp
	cbz	x0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x22, [x22, #32]
	ldr	x21, [sp, #8]
	cbnz	x22, LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x21, #1
	str	x8, [sp, #8]
	add	x0, sp, #8
	mov	x1, #0
	mov	x2, #0
	bl	_mandoc_escape
	ldr	w8, [x24]
	cmp	w8, w0
	b.eq	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #8]
	sub	w8, w8, w21
	sxtw	x22, w8
	add	x25, x22, x23
	add	x1, x25, #1
	mov	x0, x20
	bl	_mandoc_realloc
	mov	x20, x0
	add	x0, x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	mov	x23, x25
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	and	x10, x8, #0xffffffff
	lsl	x10, x10, #4
	ldr	x10, [x9, x10]
	cbz	x10, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x9, x8, lsl #4
	ldr	x21, [x8, #8]
	add	x22, x21, x23
	add	x1, x22, #1
	mov	x0, x20
	bl	_mandoc_realloc
	mov	x20, x0
	add	x0, x0, x23
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #8]
	ldrsb	x9, [x9]
	lsl	x9, x9, #4
	ldr	x1, [x8, x9]
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [sp, #8]
	add	x8, x8, #1
	str	x8, [sp, #8]
	mov	x23, x22
	b	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #16]
	add	x8, x23, x8
	add	x1, x8, #1
	mov	x0, x20
	bl	_mandoc_realloc
	mov	x20, x0
	add	x0, x0, x23
	ldp	x2, x1, [x22, #16]
	bl	_memcpy
	ldr	x8, [x22, #16]
	add	x23, x8, x23
	ldrsw	x8, [x22]
	ldr	x9, [sp, #8]
	add	x8, x9, x8
	str	x8, [sp, #8]
	b	LBB0_5
LBB0_16:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_18
LBB0_17:
	mov	x0, x1
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_mandoc_strdup
LBB0_19:
	mov	x0, x21
	bl	_strlen
	mov	x19, x0
	add	x8, x23, x0
	add	x1, x8, #1
	mov	x0, x20
	bl	_mandoc_realloc
	mov	x20, x0
	add	x0, x0, x23
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
LBB0_20:
	strb	wzr, [x20, w23, sxtw]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_ESCAPE_ERROR,4,2               ; @ESCAPE_ERROR
.subsections_via_symbols
