	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function utf8_len_of_ucs2
_utf8_len_of_ucs2:                      ## @utf8_len_of_ucs2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	addq	$4, %rdi
	xorl	%eax, %eax
	movl	$3, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	cmpl	$127, %ecx
	setg	%sil
	incq	%rsi
	cmpl	$2048, %ecx                     ## imm = 0x800
	cmovgeq	%rdx, %rsi
	addq	%rsi, %rax
	movl	(%rdi), %ecx
	addq	$4, %rdi
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.4:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_utf8_len_of_ucs2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function utf8_len_of_ucs2
_utf8_len_of_ucs2:                      ; @utf8_len_of_ucs2
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cbz	w9, LBB0_4
; %bb.1:
	mov	x8, x0
	mov	x0, #0
	add	x8, x8, #4
	mov	w10, #1
	mov	w11, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #127
	cinc	x12, x10, gt
	cmp	w9, #2047
	csel	x9, x11, x12, gt
	add	x0, x0, x9
	ldr	w9, [x8], #4
	cbnz	w9, LBB0_2
; %bb.3:
	ret
LBB0_4:
	mov	x0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_utf8_len_of_ucs2
.subsections_via_symbols
