	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function render_string
_render_string:                         ## @render_string
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	$-2122315428, -74(%rbp)         ## imm = 0x8180095C
	movw	$130, -70(%rbp)
	movq	(%rdi), %r12
	movq	%r12, -48(%rbp)
	movq	(%rsi), %rbx
	movb	$1, %dl
	testq	%rbx, %rbx
	jle	LBB0_25
## %bb.1:
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, %rax
	xorl	%r14d, %r14d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	leaq	1(%rbx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rax), %esi
	leaq	-74(%rbp), %rdi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-48(%rbp), %rax
	movzbl	(%rax), %eax
	movb	%al, (%r14,%r13)
	incq	%r13
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	-48(%rbp), %rax
	incq	%rax
	movq	%rax, -48(%rbp)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	(%r15), %rcx
	leaq	(%r12,%rcx), %rdx
	cmpq	%rdx, %rax
	jb	LBB0_3
	jmp	LBB0_23
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	testq	%r14, %r14
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mandoc_malloc
	movq	%rax, %r14
	movq	-48(%rbp), %r13
	subq	%r12, %r13
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_memcpy
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	-48(%rbp), %rax
	movsbl	(%rax), %ecx
	cmpl	$92, %ecx
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$9, %ecx
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=2
	movb	$32, (%r14,%r13)
	incq	%r13
	incq	-48(%rbp)
	jmp	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=2
	incq	%rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	leaq	-68(%rbp), %rdx
	callq	_mandoc_escape
	movq	_ESCAPE_SPECIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	_write_utf8@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-112(%rbp), %rdi
	movl	-68(%rbp), %esi
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=2
	callq	_mchars_spec2cp
	testl	%eax, %eax
	jle	LBB0_12
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, %edi
	leaq	-95(%rbp), %rsi
	callq	_utf8
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_12
	jmp	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=2
	leaq	-56(%rbp), %rdx
	callq	_mchars_spec2str
	testq	%rax, %rax
	jne	LBB0_21
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	-48(%rbp), %rax
	jmp	LBB0_13
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-95(%rbp), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%rbx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rbx), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_mandoc_realloc
	movq	%rax, %r14
	leaq	(%rax,%r13), %rdi
	movq	-56(%rbp), %rdx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	addq	-56(%rbp), %r13
	movq	-48(%rbp), %rax
	movq	(%r15), %rcx
	leaq	(%r12,%rcx), %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rdx, %rax
	jb	LBB0_2
LBB0_23:
	movq	%rcx, %rbx
	testq	%r14, %r14
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movb	$1, %dl
	je	LBB0_25
## %bb.24:
	movq	%r14, (%rdi)
	movq	%r13, (%r15)
	xorl	%edx, %edx
	movq	%r13, %rbx
LBB0_25:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.26:
	movq	(%rdi), %rcx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$32, -1(%rcx,%rbx)
	jne	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	decq	%rbx
	movq	%rbx, (%r15)
	jne	LBB0_27
LBB0_29:
	xorl	%ebx, %ebx
LBB0_30:
	testb	%dl, %dl
	jne	LBB0_32
## %bb.31:
	movq	(%rdi), %rax
	movb	$0, (%rax,%rbx)
	movl	$1, %eax
LBB0_32:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_ESCAPE_SPECIAL,8,3             ## @ESCAPE_SPECIAL
	.comm	_write_utf8,8,3                 ## @write_utf8
	.no_dead_strip	_render_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function render_string
_render_string:                         ; @render_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	mov	w8, #2396
	movk	w8, #33152, lsl #16
	stur	w8, [sp, #11]
	mov	w8, #130
	sturh	w8, [sp, #15]
	ldr	x23, [x0]
	str	x23, [sp, #40]
	ldr	x26, [x1]
	cmp	x26, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh0:
	adrp	x27, _ESCAPE_SPECIAL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ESCAPE_SPECIAL@GOTPAGEOFF]
Lloh2:
	adrp	x25, _write_utf8@GOTPAGE
Lloh3:
	ldr	x25, [x25, _write_utf8@GOTPAGEOFF]
	mov	w28, #32
	mov	x8, x23
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	add	x24, x26, #1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w1, [x8]
	add	x0, sp, #11
	bl	_strchr
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	cbz	x22, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [sp, #40]
	ldrb	w8, [x8]
	strb	w8, [x22, x21]
	add	x21, x21, #1
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [sp, #40]
	add	x8, x8, #1
	str	x8, [sp, #40]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=2
	ldr	x9, [x20]
	add	x10, x23, x9
	cmp	x8, x10
	b.lo	LBB0_3
	b	LBB0_22
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=2
	cbnz	x22, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x24
	bl	_mandoc_malloc
	mov	x22, x0
	ldr	x8, [sp, #40]
	sub	x21, x8, x23
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [sp, #40]
	ldrsb	w9, [x8]
	cmp	w9, #92
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=2
	cmp	w9, #9
	b.ne	LBB0_32
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=2
	strb	w28, [x22, x21]
	add	x21, x21, #1
	ldr	x8, [sp, #40]
	add	x8, x8, #1
	str	x8, [sp, #40]
	b	LBB0_19
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x8, x8, #1
	str	x8, [sp, #40]
	add	x0, sp, #40
	add	x1, sp, #32
	add	x2, sp, #4
	bl	_mandoc_escape
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [x25]
	ldr	x0, [sp, #32]
	ldr	w1, [sp, #4]
	cbz	x8, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=2
	bl	_mchars_spec2cp
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=2
	mov	x28, x27
	mov	x27, x25
	add	x25, sp, #17
	add	x1, sp, #17
	bl	_utf8
	str	x0, [sp, #24]
	cbz	x0, LBB0_18
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x28, x27
	mov	x27, x25
	add	x2, sp, #24
	bl	_mchars_spec2str
	cbnz	x0, LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x25, x27
	mov	x27, x28
	mov	w28, #32
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [sp, #40]
	b	LBB0_7
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	ldr	x0, [sp, #24]
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x0, x26
	add	x1, x26, #1
	mov	x0, x22
	bl	_mandoc_realloc
	mov	x22, x0
	add	x0, x0, x21
	ldr	x2, [sp, #24]
	mov	x1, x25
	bl	_memcpy
	ldr	x8, [sp, #24]
	add	x21, x8, x21
	ldr	x8, [sp, #40]
	ldr	x9, [x20]
	add	x10, x23, x9
	cmp	x8, x10
	mov	x25, x27
	mov	x27, x28
	mov	w28, #32
	b.lo	LBB0_2
LBB0_22:
	mov	x26, x9
	cbz	x22, LBB0_24
; %bb.23:
	mov	w8, #0
	str	x22, [x19]
	str	x21, [x20]
	mov	x26, x21
	cbnz	x26, LBB0_25
	b	LBB0_28
LBB0_24:
	mov	w8, #1
	cbz	x26, LBB0_28
LBB0_25:
	ldr	x9, [x19]
	sub	x9, x9, #1
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9, x26]
	cmp	w10, #32
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	sub	x26, x26, #1
	str	x26, [x20]
	cbnz	x26, LBB0_26
LBB0_28:
	tbz	w8, #0, LBB0_30
; %bb.29:
	mov	w0, #0
	b	LBB0_31
LBB0_30:
	ldr	x8, [x19]
	strb	wzr, [x8, x26]
	mov	w0, #1
LBB0_31:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_32:
	bl	_abort
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ESCAPE_SPECIAL,8,3             ; @ESCAPE_SPECIAL
	.comm	_write_utf8,8,3                 ; @write_utf8
	.no_dead_strip	_render_string
.subsections_via_symbols
