	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xsltGetUTF8Char
LCPI0_0:
	.byte	15                              ## 0xf
	.byte	63                              ## 0x3f
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.byte	63                              ## 0x3f
	.byte	63                              ## 0x3f
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_xsltGetUTF8Char
	.p2align	4, 0x90
_xsltGetUTF8Char:                       ## @xsltGetUTF8Char
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.2:
	movl	(%rsi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.3:
	movzbl	(%rdi), %eax
	testb	$-128, %al
	jne	LBB0_4
## %bb.17:
	movl	$1, (%rsi)
	popq	%rbp
	retq
LBB0_4:
	cmpl	$2, %ecx
	jb	LBB0_18
## %bb.5:
	movb	1(%rdi), %dl
	andb	$-64, %dl
	cmpb	$-128, %dl
	jne	LBB0_18
## %bb.6:
	movl	%eax, %r8d
	notl	%r8d
	testb	$-32, %r8b
	jne	LBB0_15
## %bb.7:
	cmpl	$3, %ecx
	jb	LBB0_18
## %bb.8:
	movb	2(%rdi), %dl
	andb	$-64, %dl
	cmpb	$-128, %dl
	jne	LBB0_18
## %bb.9:
	testb	$-16, %r8b
	jne	LBB0_14
## %bb.10:
	cmpl	$4, %ecx
	jb	LBB0_18
## %bb.11:
	andl	$-8, %eax
	cmpl	$240, %eax
	jne	LBB0_18
## %bb.12:
	movb	3(%rdi), %al
	andb	$-64, %al
	cmpb	$-128, %al
	jne	LBB0_18
## %bb.13:
	movl	$4, (%rsi)
	movzbl	(%rdi), %eax
	andl	$7, %eax
	movzwl	1(%rdi), %ecx
	movd	%ecx, %xmm0
	pand	LCPI0_1(%rip), %xmm0
	shll	$18, %eax
	pmovzxbd	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
	movdqa	%xmm0, %xmm1
	pslld	$6, %xmm1
	pslld	$12, %xmm0
	movd	%xmm0, %ecx
	orl	%eax, %ecx
	pextrd	$1, %xmm1, %edx
	orl	%ecx, %edx
	movzbl	3(%rdi), %eax
	andl	$63, %eax
	orl	%edx, %eax
	popq	%rbp
	retq
LBB0_18:
	movl	$-1, %eax
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.19:
	movl	$0, (%rsi)
LBB0_20:
	popq	%rbp
	retq
LBB0_15:
	movl	$2, (%rsi)
	movzbl	(%rdi), %ecx
	andl	$31, %ecx
	shll	$6, %ecx
	movzbl	1(%rdi), %eax
LBB0_16:
	andl	$63, %eax
	orl	%ecx, %eax
	popq	%rbp
	retq
LBB0_14:
	movl	$3, (%rsi)
	movzwl	(%rdi), %eax
	movd	%eax, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	pmovzxbd	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
	movdqa	%xmm0, %xmm1
	pslld	$12, %xmm1
	pslld	$6, %xmm0
	pshufd	$85, %xmm0, %xmm0               ## xmm0 = xmm0[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %ecx
	movzbl	2(%rdi), %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xsltGetUTF8Char                ; -- Begin function xsltGetUTF8Char
	.p2align	2
_xsltGetUTF8Char:                       ; @xsltGetUTF8Char
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_15
; %bb.1:
	cbz	x1, LBB0_15
; %bb.2:
	ldr	w9, [x1]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.3:
	ldrb	w8, [x0]
	tbnz	w8, #7, LBB0_5
; %bb.4:
	mov	w9, #1
	str	w9, [x1]
	mov	x0, x8
	ret
LBB0_5:
	cmp	w9, #2
	b.lo	LBB0_15
; %bb.6:
	ldrb	w10, [x0, #1]
	and	w10, w10, #0xc0
	cmp	w10, #128
	b.ne	LBB0_15
; %bb.7:
	mvn	w10, w8
	tst	w10, #0xe0
	b.ne	LBB0_18
; %bb.8:
	cmp	w9, #3
	b.lo	LBB0_15
; %bb.9:
	ldrb	w10, [x0, #2]
	and	w10, w10, #0xc0
	cmp	w10, #128
	b.ne	LBB0_15
; %bb.10:
	mvn	w10, w8
	tst	w10, #0xf0
	b.ne	LBB0_19
; %bb.11:
	cmp	w9, #4
	b.lo	LBB0_15
; %bb.12:
	and	w8, w8, #0xf8
	cmp	w8, #240
	b.ne	LBB0_15
; %bb.13:
	ldrb	w8, [x0, #3]
	and	w8, w8, #0xc0
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.14:
	mov	w8, #4
	str	w8, [x1]
	ldrb	w8, [x0]
	and	w8, w8, #0x7
	lsl	w8, w8, #18
	ldrb	w9, [x0, #1]
	and	w9, w9, #0x3f
	bfi	w8, w9, #12, #6
	ldrb	w9, [x0, #2]
	and	w9, w9, #0x3f
	bfi	w8, w9, #6, #6
	ldrb	w9, [x0, #3]
	b	LBB0_20
LBB0_15:
	cbz	x1, LBB0_17
; %bb.16:
	str	wzr, [x1]
LBB0_17:
	mov	w0, #-1
	ret
LBB0_18:
	mov	w8, #2
	str	w8, [x1]
	ldrb	w8, [x0]
	and	w9, w8, #0x1f
	ldrb	w8, [x0, #1]
	and	w8, w8, #0x3f
	bfi	w8, w9, #6, #5
	mov	x0, x8
	ret
LBB0_19:
	mov	w8, #3
	str	w8, [x1]
	ldrb	w8, [x0]
	and	w8, w8, #0xf
	lsl	w8, w8, #12
	ldrb	w9, [x0, #1]
	and	w9, w9, #0x3f
	bfi	w8, w9, #6, #6
	ldrb	w9, [x0, #2]
LBB0_20:
	bfxil	w8, w9, #0, #6
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
