	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decode_utf8                    ## -- Begin function decode_utf8
	.p2align	4, 0x90
_decode_utf8:                           ## @decode_utf8
	.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
	testb	$-128, %cl
	je	LBB0_4
## %bb.1:
	movl	$-1, %eax
	testb	$64, %cl
	jne	LBB0_2
LBB0_8:
	popq	%rbp
	retq
LBB0_2:
	testb	$32, %cl
	jne	LBB0_5
## %bb.3:
	shll	$6, %ecx
	xorl	4(%rdi), %ecx
	xorl	$12416, %ecx                    ## imm = 0x3080
LBB0_4:
	movl	%ecx, %eax
	popq	%rbp
	retq
LBB0_5:
	testb	$16, %cl
	jne	LBB0_6
## %bb.9:
	shll	$12, %ecx
	movl	4(%rdi), %eax
	shll	$6, %eax
	xorl	%ecx, %eax
	xorl	8(%rdi), %eax
	xorl	$925824, %eax                   ## imm = 0xE2080
	popq	%rbp
	retq
LBB0_6:
	testb	$8, %cl
	jne	LBB0_8
## %bb.7:
	shll	$18, %ecx
	movl	4(%rdi), %edx
	movl	8(%rdi), %eax
	shll	$12, %edx
	xorl	%ecx, %edx
	shll	$6, %eax
	xorl	%edx, %eax
	xorl	12(%rdi), %eax
	xorl	$63447168, %eax                 ## imm = 0x3C82080
	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	_decode_utf8                    ; -- Begin function decode_utf8
	.p2align	2
_decode_utf8:                           ; @decode_utf8
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	w0, [x0]
	tbz	w0, #7, LBB0_10
; %bb.1:
	tbnz	w0, #6, LBB0_3
LBB0_2:
	mov	w0, #-1
	ret
LBB0_3:
	tbnz	w0, #5, LBB0_5
; %bb.4:
	ldr	w8, [x8, #4]
	eor	w8, w8, w0, lsl #6
	mov	w9, #12416
	b	LBB0_9
LBB0_5:
	tbnz	w0, #4, LBB0_7
; %bb.6:
	lsl	w9, w0, #12
	ldp	w10, w8, [x8, #4]
	eor	w9, w9, w10, lsl #6
	eor	w8, w9, w8
	mov	w9, #8320
	movk	w9, #14, lsl #16
	b	LBB0_9
LBB0_7:
	tbnz	w0, #3, LBB0_2
; %bb.8:
	lsl	w9, w0, #18
	ldp	w10, w11, [x8, #4]
	ldr	w8, [x8, #12]
	eor	w9, w9, w10, lsl #12
	eor	w9, w9, w11, lsl #6
	eor	w8, w9, w8
	mov	w9, #8320
	movk	w9, #968, lsl #16
LBB0_9:
	eor	w0, w8, w9
LBB0_10:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
