	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function roff_setstrn
_roff_setstrn:                          ## @roff_setstrn
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, 24(%rbx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	32(%rbx), %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rdi
	callq	_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	jmp	LBB0_8
LBB0_5:
	movl	$40, %edi
	callq	_mandoc_malloc
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mandoc_strndup
	movl	%eax, 32(%rbx)
	movq	%r14, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, (%rcx)
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_8:
	testq	%r12, %r12
	je	LBB0_22
## %bb.9:
	xorl	%eax, %eax
	cmpl	$2, %r13d
	setge	%al
	leaq	(%rax,%r15), %rsi
	incq	%rsi
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.11:
	movq	8(%rbx), %r14
	addq	%r14, %rsi
	callq	_mandoc_realloc
	movq	%rax, (%rbx)
	movslq	%r14d, %rcx
	jmp	LBB0_12
LBB0_10:
	movq	%rsi, %rdi
	callq	_mandoc_malloc
	movq	%rax, (%rbx)
	movb	$0, (%rax)
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
LBB0_12:
	addq	%rcx, %rax
	testl	%r15d, %r15d
	jle	LBB0_19
## %bb.13:
	xorl	%ecx, %ecx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movslq	%ecx, %rdx
	movzbl	(%r12,%rdx), %edx
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ecx
	movb	%dl, (%rax)
	incq	%rax
	cmpl	%r15d, %ecx
	jge	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rsi
	movzbl	(%r12,%rsi), %edx
	cmpb	$92, %dl
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpb	$92, 1(%r12,%rsi)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rsi
	movl	%esi, %ecx
	jmp	LBB0_17
LBB0_19:
	cmpl	$2, %r13d
	jl	LBB0_21
## %bb.20:
	movb	$10, (%rax)
	incq	%rax
LBB0_21:
	movb	$0, (%rax)
	subl	(%rbx), %eax
	cltq
	movq	%rax, 8(%rbx)
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_roff_setstrn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function roff_setstrn
_roff_setstrn:                          ; @roff_setstrn
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x25, x1
	mov	x24, x0
	ldr	x19, [x0]
	cbnz	x19, LBB0_6
LBB0_1:
	mov	w0, #40
	bl	_mandoc_malloc
	mov	x19, x0
	mov	x0, x25
	mov	x1, x23
	bl	_mandoc_strndup
	str	w0, [x19, #32]
	stp	xzr, xzr, [x19]
	ldr	x8, [x24]
	stp	x8, x23, [x19, #16]
	str	x19, [x24]
LBB0_2:
	cbz	x22, LBB0_19
; %bb.3:
	cmp	w20, #1
	mov	w8, #1
	cinc	x8, x8, gt
	add	x0, x8, x21
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.4:
	ldr	x23, [x19, #8]
	add	x1, x23, x0
	mov	x0, x8
	bl	_mandoc_realloc
	str	x0, [x19]
	sxtw	x8, w23
	b	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x19, [x19, #16]
	cbz	x19, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	cmp	x8, x23
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #32]
	mov	x1, x25
	mov	x2, x23
	bl	_strncmp
	cbnz	x0, LBB0_5
; %bb.8:
	cbnz	w20, LBB0_2
; %bb.9:
	ldr	x0, [x19]
	bl	_free
	stp	xzr, xzr, [x19]
	b	LBB0_2
LBB0_10:
	bl	_mandoc_malloc
	mov	x8, #0
	str	x0, [x19]
	strb	wzr, [x0]
	ldr	x0, [x19]
LBB0_11:
	add	x8, x0, x8
	cmp	w21, #1
	b.lt	LBB0_16
; %bb.12:
	mov	w9, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w9, w9, #1
	strb	w10, [x8], #1
	cmp	w9, w21
	b.ge	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	sxtw	x11, w9
	ldrb	w10, [x22, x11]
	cmp	w10, #92
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x11, #1
	ldrb	w11, [x22, x10]
	cmp	w11, #92
	csel	w9, w10, w9, eq
	ldrb	w10, [x22, w9, sxtw]
	b	LBB0_13
LBB0_16:
	cmp	w20, #1
	b.le	LBB0_18
; %bb.17:
	mov	w9, #10
	strb	w9, [x8], #1
LBB0_18:
	strb	wzr, [x8]
	ldr	w9, [x19]
	sub	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x19, #8]
LBB0_19:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_roff_setstrn
.subsections_via_symbols
