	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function pg_utf2wchar_with_len
LCPI0_0:
	.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
	.p2align	4, 0x90
_pg_utf2wchar_with_len:                 ## @pg_utf2wchar_with_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	LBB0_15
## %bb.1:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <63,63,u,u,u,u,u,u,u,u,u,u,u,u,u,u>
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	movl	$-1, %r8d
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, (%rsi)
	addq	$4, %rsi
	incl	%eax
	addl	%r8d, %edx
	jle	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi), %r9d
	testl	%r9d, %r9d
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$-128, %r9b
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, %ecx
	andl	$-32, %ecx
	cmpl	$192, %ecx
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %edx
	jb	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%rdi), %ecx
	addq	$2, %rdi
	andl	$63, %ecx
	andl	$31, %r9d
	shll	$6, %r9d
	orl	%ecx, %r9d
	movl	$-2, %r8d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, %ecx
	andl	$-16, %ecx
	cmpl	$224, %ecx
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %edx
	jb	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%rdi), %ecx
	andl	$63, %ecx
	movzbl	2(%rdi), %r8d
	addq	$3, %rdi
	andl	$63, %r8d
	shll	$12, %r9d
	movzwl	%r9w, %r9d
	shll	$6, %ecx
	orl	%r9d, %ecx
	orl	%r8d, %ecx
	movl	$-3, %r8d
	movl	%ecx, %r9d
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r9d, %ecx
	andl	$-8, %ecx
	cmpl	$240, %ecx
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$4, %edx
	jb	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movzbl	3(%rdi), %r10d
	movzwl	1(%rdi), %r8d
	addq	$4, %rdi
	andl	$7, %r9d
	shll	$18, %r9d
	movd	%r8d, %xmm1
	pand	%xmm0, %xmm1
	pmovzxbd	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,zero,zero,xmm1[1],zero,zero,zero,xmm1[2],zero,zero,zero,xmm1[3],zero,zero,zero
	movdqa	%xmm1, %xmm2
	pslld	$6, %xmm2
	pslld	$12, %xmm1
	movd	%xmm1, %ecx
	orl	%r9d, %ecx
	pextrd	$1, %xmm2, %r9d
	andl	$63, %r10d
	orl	%ecx, %r9d
	orl	%r10d, %r9d
	movl	$-4, %r8d
	jmp	LBB0_14
LBB0_15:
	movl	$0, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pg_utf2wchar_with_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_utf2wchar_with_len
_pg_utf2wchar_with_len:                 ; @pg_utf2wchar_with_len
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	mov	w10, #-1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x1], #4
	add	w2, w2, w10
	add	w0, w0, #1
	cmp	w2, #0
	b.le	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cbz	w9, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w9, #7, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w10, w9, #0xe0
	cmp	w10, #192
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, #2
	b.lo	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w10, [x8, #1]
	add	x8, x8, #2
	and	w11, w10, #0x3f
	bfi	w11, w9, #6, #5
	mov	w10, #-2
	mov	x9, x11
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w10, w9, #0xf0
	cmp	w10, #224
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, #3
	b.lo	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w10, [x8, #1]
	and	w10, w10, #0x3f
	ldrb	w11, [x8, #2]
	add	x8, x8, #3
	ubfiz	w9, w9, #12, #4
	bfi	w9, w10, #6, #6
	bfxil	w9, w11, #0, #6
	mov	w10, #-3
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w10, w9, #0xf8
	cmp	w10, #240
	b.ne	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, #4
	b.lo	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w10, [x8, #1]
	and	w10, w10, #0x3f
	ldrb	w11, [x8, #2]
	and	w11, w11, #0x3f
	ldrb	w12, [x8, #3]
	add	x8, x8, #4
	ubfiz	w9, w9, #18, #3
	bfi	w9, w10, #12, #6
	bfi	w9, w11, #6, #6
	bfxil	w9, w12, #0, #6
	mov	w10, #-4
	b	LBB0_3
LBB0_15:
	str	wzr, [x1]
	ret
LBB0_16:
	mov	w0, #0
	str	wzr, [x1]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pg_utf2wchar_with_len
.subsections_via_symbols
