	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_utf_cstring_utf8_width     ## -- Begin function svn_utf_cstring_utf8_width
	.p2align	4, 0x90
_svn_utf_cstring_utf8_width:            ## @svn_utf_cstring_utf8_width
	.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
	cmpb	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_svn_utf__cstring_is_valid
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_18
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	andl	$127, %edi
	movl	$1, %eax
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%rax, %rbx
	callq	_mk_wcwidth
	cmpl	$-1, %eax
	movl	%eax, %ecx
	cmovel	%r15d, %ecx
	addl	%ecx, %r12d
	cmpl	$-1, %eax
	je	LBB0_18
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	$-128, %dil
	je	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, %ecx
	andl	$-32, %ecx
	cmpl	$192, %ecx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$31, %esi
	movl	$2, %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, %eax
	andl	$-16, %eax
	cmpl	$224, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$15, %esi
	movl	$3, %eax
	movb	$1, %dl
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, %eax
	andl	$-8, %eax
	cmpl	$240, %eax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$7, %esi
	movl	$4, %eax
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	andl	%edi, %esi
	shll	$6, %esi
	movzbl	1(%rbx), %edi
	andl	$63, %edi
	orl	%esi, %edi
	cmpl	$192, %ecx
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, %ecx
	shll	$6, %ecx
	movzbl	2(%rbx), %edi
	andl	$63, %edi
	orl	%ecx, %edi
	testb	%dl, %dl
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	shll	$6, %edi
	movzbl	3(%rbx), %ecx
	andl	$63, %ecx
	orl	%ecx, %edi
	jmp	LBB0_17
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_5:
	movl	%r12d, %r14d
LBB0_18:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_utf_cstring_utf8_width     ; -- Begin function svn_utf_cstring_utf8_width
	.p2align	2
_svn_utf_cstring_utf8_width:            ; @svn_utf_cstring_utf8_width
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldrb	w8, [x0]
	cbz	w8, LBB0_18
; %bb.1:
	mov	x19, x0
	bl	_svn_utf__cstring_is_valid
	cbz	w0, LBB0_17
; %bb.2:
	mov	w20, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	w0, w8, #0x7f
	mov	w10, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, x10
	bl	_mk_wcwidth
	cmn	w0, #1
	csel	w8, wzr, w0, eq
	add	w20, w8, w20
	b.eq	LBB0_17
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19]
	cbz	w8, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	tbz	w8, #7, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w9, w8, #0xe0
	cmp	w9, #192
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w11, #0
	mov	w12, #31
	mov	w10, #2
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	w10, w8, #0xf0
	cmp	w10, #224
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #15
	mov	w11, #1
	mov	w10, #3
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w10, w8, #0xf8
	cmp	w10, #240
	b.ne	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w11, #0
	mov	w12, #7
	mov	w10, #4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w8, w12, w8
	ldrb	w12, [x19, #1]
	and	w0, w12, #0x3f
	bfi	w0, w8, #6, #5
	cmp	w9, #192
	b.eq	LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x19, #2]
	and	w8, w8, #0x3f
	bfi	w8, w0, #6, #11
	tbz	w11, #0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x8
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w9, [x19, #3]
	and	w0, w9, #0x3f
	bfi	w0, w8, #6, #17
	b	LBB0_4
LBB0_17:
	mov	w20, #-1
	b	LBB0_19
LBB0_18:
	mov	w20, #0
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
