	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__INTERNAL_trim_to_complete_utf8_characters ## -- Begin function _INTERNAL_trim_to_complete_utf8_characters
	.p2align	4, 0x90
__INTERNAL_trim_to_complete_utf8_characters: ## @_INTERNAL_trim_to_complete_utf8_characters
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_17
## %bb.1:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rax), %r8d
	movl	%r8d, %edx
	andl	$-8, %edx
	cmpl	$240, %edx
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$-3, %rcx
	cmpq	$-5, %rcx
	ja	LBB0_6
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, %edx
	andl	$-16, %edx
	cmpl	$224, %edx
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$-2, %rcx
	cmpq	$-4, %rcx
	ja	LBB0_6
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, %edx
	andl	$-32, %edx
	cmpl	$192, %edx
	jne	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	decq	%rcx
	cmpq	$-3, %rcx
	jbe	LBB0_16
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	decq	%rax
	incq	%rcx
	cmpq	%rdi, %rax
	ja	LBB0_4
	jmp	LBB0_13
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	testb	$-128, %r8b
	jne	LBB0_3
	jmp	LBB0_17
LBB0_13:
	movq	%rdi, %rax
	jmp	LBB0_17
LBB0_14:
	addq	$3, %rax
	jmp	LBB0_17
LBB0_15:
	addq	$2, %rax
	jmp	LBB0_17
LBB0_16:
	incq	%rax
LBB0_17:
	movq	%rax, (%rsi)
	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	__INTERNAL_trim_to_complete_utf8_characters ; -- Begin function _INTERNAL_trim_to_complete_utf8_characters
	.p2align	2
__INTERNAL_trim_to_complete_utf8_characters: ; @_INTERNAL_trim_to_complete_utf8_characters
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	cmp	x8, x0
	b.ls	LBB0_11
; %bb.1:
	mov	x10, #0
	mov	x9, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x9, #-1]!
	and	w12, w11, #0xf8
	cmp	w12, #240
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x10, x10, #3
	cmn	x10, #5
	b.hi	LBB0_8
	b	LBB0_13
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	and	w12, w11, #0xf0
	cmp	w12, #224
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x10, x10, #2
	cmn	x10, #4
	b.hi	LBB0_8
	b	LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	and	w12, w11, #0xe0
	cmp	w12, #192
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x10, x10, #1
	cmn	x10, #3
	b.ls	LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, #0
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	mov	x8, x9
	cmp	x9, x0
	b.hi	LBB0_2
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w11, #7, LBB0_9
LBB0_11:
	str	x8, [x1]
	ret
LBB0_12:
	mov	x8, x0
	str	x8, [x1]
	ret
LBB0_13:
	add	x8, x8, #3
	str	x8, [x1]
	ret
LBB0_14:
	add	x8, x8, #2
	str	x8, [x1]
	ret
LBB0_15:
	add	x8, x8, #1
	str	x8, [x1]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
