	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_line_for_display
_prepare_line_for_display:              ## @prepare_line_for_display
	.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
	callq	_svn_stringbuf_create
	movq	%rax, %r15
	movq	_LINE_DISPLAY_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	(%r15), %eax
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.1:
	movq	8(%r15), %rcx
	leal	-2(%rax), %edx
	cmpb	$13, (%rcx,%rdx)
	jne	LBB0_5
## %bb.2:
	leal	-1(%rax), %edx
	movl	$2, %esi
	cmpb	$10, (%rcx,%rdx)
	jne	LBB0_5
	jmp	LBB0_7
LBB0_3:
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.4:
	movq	8(%r15), %rcx
LBB0_5:
	decl	%eax
	movb	(%rcx,%rax), %al
	movl	$1, %esi
	cmpb	$13, %al
	je	LBB0_7
## %bb.6:
	cmpb	$10, %al
	jne	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_svn_stringbuf_chop
LBB0_8:
	movq	8(%r15), %rdi
	callq	_svn_utf_cstring_utf8_width
	cmpq	$-1, %rax
	jne	LBB0_9
## %bb.10:
	movq	8(%r15), %rdi
	movq	%r14, %rsi
	callq	_svn_xml_fuzzy_escape
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_svn_stringbuf_create
	movq	%rax, %r15
	movq	8(%rax), %rdi
	callq	_svn_utf_cstring_utf8_width
	cmpq	$-1, %rax
	je	LBB0_12
LBB0_9:
	movq	%rax, %rbx
LBB0_13:
	movq	%r14, %rdi
	callq	_svn_pool_create
	movq	%rax, %r14
	cmpq	%r12, %rbx
	ja	LBB0_23
LBB0_14:
	movq	%r14, %rdi
	callq	_svn_pool_destroy
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:
	cmpq	%r12, %rbx
	jae	LBB0_19
LBB0_16:
	leaq	1(%rbx), %r14
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_svn_stringbuf_appendbyte
	incq	%rbx
	cmpq	%r12, %rbx
	jb	LBB0_17
## %bb.18:
	cmpq	%r14, %r12
	cmovaq	%r12, %r14
	movq	%r14, %rbx
LBB0_19:
	xorl	%edi, %edi
	cmpq	%r12, %rbx
	sete	%dil
	callq	_SVN_ERR_ASSERT_NO_RETURN
	movq	8(%r15), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_23 Depth=1
	callq	_svn_utf_cstring_utf8_width
	movq	%rax, %rbx
	cmpq	$-1, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpq	%r12, %rbx
	ja	LBB0_23
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	movslq	(%r15), %rbx
	cmpq	%r12, %rbx
	jbe	LBB0_14
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_svn_pool_clear
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_svn_stringbuf_chop
	movq	8(%r15), %rdi
	movslq	(%r15), %rsi
	callq	_svn_utf__last_valid
	movq	8(%r15), %rdi
	movslq	(%r15), %rsi
	addq	%rdi, %rsi
	cmpq	%rsi, %rax
	jae	LBB0_20
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	subl	%eax, %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_svn_stringbuf_chop
	movq	8(%r15), %rdi
	jmp	LBB0_20
LBB0_12:
	movslq	(%r15), %rbx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_LINE_DISPLAY_WIDTH,8,3         ## @LINE_DISPLAY_WIDTH
	.no_dead_strip	_prepare_line_for_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_line_for_display
_prepare_line_for_display:              ; @prepare_line_for_display
	.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
	bl	_svn_stringbuf_create
	mov	x19, x0
Lloh0:
	adrp	x8, _LINE_DISPLAY_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LINE_DISPLAY_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	w8, [x0]
	subs	w10, w8, #2
	b.lt	LBB0_4
; %bb.1:
	ldr	x9, [x19, #8]
	ldrb	w10, [x9, w10, uxtw]
	cmp	w10, #13
	b.ne	LBB0_6
; %bb.2:
	sub	w10, w8, #1
	ldrb	w10, [x9, w10, uxtw]
	cmp	w10, #10
	b.ne	LBB0_6
; %bb.3:
	mov	w1, #2
	b	LBB0_8
LBB0_4:
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.5:
	ldr	x9, [x19, #8]
LBB0_6:
	sub	w8, w8, #1
	ldrb	w8, [x9, w8, uxtw]
	cmp	w8, #13
	ccmp	w8, #10, #4, ne
	b.ne	LBB0_9
; %bb.7:
	mov	w1, #1
LBB0_8:
	mov	x0, x19
	bl	_svn_stringbuf_chop
LBB0_9:
	ldr	x0, [x19, #8]
	bl	_svn_utf_cstring_utf8_width
	cmn	x0, #1
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_svn_xml_fuzzy_escape
	mov	x1, x20
	bl	_svn_stringbuf_create
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_svn_utf_cstring_utf8_width
	cmn	x0, #1
	b.eq	LBB0_24
LBB0_11:
	mov	x21, x0
LBB0_12:
	mov	x0, x20
	bl	_svn_pool_create
	mov	x20, x0
	cmp	x21, x22
	b.hi	LBB0_22
LBB0_13:
	mov	x0, x20
	bl	_svn_pool_destroy
	cbz	x21, LBB0_15
; %bb.14:
	cmp	x21, x22
	b.hs	LBB0_18
LBB0_15:
	add	x20, x21, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #32
	bl	_svn_stringbuf_appendbyte
	add	x21, x21, #1
	cmp	x21, x22
	b.lo	LBB0_16
; %bb.17:
	cmp	x22, x20
	csel	x21, x22, x20, hi
LBB0_18:
	cmp	x21, x22
	cset	w0, eq
	bl	_SVN_ERR_ASSERT_NO_RETURN
	ldr	x0, [x19, #8]
	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_19:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x8
	bl	_svn_utf_cstring_utf8_width
	mov	x21, x0
	cmn	x0, #1
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	x21, x22
	b.hi	LBB0_22
	b	LBB0_13
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	ldrsw	x21, [x19]
	cmp	x21, x22
	b.ls	LBB0_13
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_svn_pool_clear
	mov	x0, x19
	mov	w1, #1
	bl	_svn_stringbuf_chop
	ldr	x0, [x19, #8]
	ldrsw	x1, [x19]
	bl	_svn_utf__last_valid
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x9, x8, x9
	cmp	x0, x9
	b.hs	LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	sub	w1, w9, w0
	mov	x0, x19
	bl	_svn_stringbuf_chop
	ldr	x8, [x19, #8]
	b	LBB0_19
LBB0_24:
	ldrsw	x21, [x19]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LINE_DISPLAY_WIDTH,8,3         ; @LINE_DISPLAY_WIDTH
	.no_dead_strip	_prepare_line_for_display
.subsections_via_symbols
