	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __getUtf8Length
___getUtf8Length:                       ## @__getUtf8Length
	.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
	movb	(%rdi), %al
	xorl	%r14d, %r14d
	testb	%al, %al
	je	LBB0_8
## %bb.1:
	movl	%esi, %r15d
	testl	%esi, %esi
	jle	LBB0_8
## %bb.2:
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	andb	$-64, %al
	cmpb	$-128, %al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_r_str_char_fullwidth
	cmpq	$1, %rax
	sbbl	$-1, %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%rbx), %eax
	testb	%al, %al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%r15), %ecx
	incq	%rbx
	cmpl	$1, %r15d
	movl	%ecx, %r15d
	jg	LBB0_3
LBB0_7:
	addl	%r12d, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___getUtf8Length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __getUtf8Length
___getUtf8Length:                       ; @__getUtf8Length
	.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
	ldrb	w8, [x0]
	cmp	w8, #0
	ccmp	w1, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	mov	w21, #0
	mov	w22, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x19, #1]!
	cmp	w8, #0
	ccmp	w20, #1, #4, ne
	sub	w20, w20, #1
	b.le	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w8, #0xc0
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	mov	x0, x19
	mov	x1, x20
	bl	_r_str_char_fullwidth
	cmp	x0, #0
	cinc	w21, w21, ne
	b	LBB0_3
LBB0_6:
	add	w0, w21, w22
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___getUtf8Length
.subsections_via_symbols
