	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_wchar2mule_with_len
_pg_wchar2mule_with_len:                ## @pg_wchar2mule_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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rdi, %rbx
	incl	%r15d
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r12), %rsi
	movb	%r14b, (%r12)
	movl	$2, %edi
	movl	$2, %edx
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movzbl	(%rbx), %ecx
	addq	%rdx, %r12
	movb	%cl, (%rsi)
	addl	%edi, %eax
	addq	$4, %rbx
	decl	%r15d
	cmpl	$1, %r15d
	jle	LBB0_21
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r14d
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	shrl	$16, %r14d
	movzbl	%r14b, %r13d
	movl	%r13d, %edi
	callq	_IS_LC1
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	callq	_IS_LC2
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	%r14b, (%r12)
	movzbl	1(%rbx), %ecx
	leaq	2(%r12), %rsi
	movb	%cl, 1(%r12)
	jmp	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	callq	_IS_LCPRV1_A_RANGE
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_LCPRV1_A@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	callq	_IS_LCPRV1_B_RANGE
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_LCPRV1_B@GOTPCREL(%rip), %rax
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rax), %eax
	movb	%al, (%r12)
	leaq	2(%r12), %rsi
	movb	%r14b, 1(%r12)
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$3, %edi
	movl	$3, %edx
	jmp	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	callq	_IS_LCPRV2_A_RANGE
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_LCPRV2_A@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	callq	_IS_LCPRV2_B_RANGE
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_LCPRV2_B@GOTPCREL(%rip), %rax
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rax), %eax
	movb	%al, (%r12)
	movb	%r14b, 1(%r12)
	movzbl	1(%rbx), %ecx
	leaq	3(%r12), %rsi
	movb	%cl, 2(%r12)
	movl	$4, %edi
	movl	$4, %edx
	jmp	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	movl	$1, %edx
	movq	%r12, %rsi
	jmp	LBB0_20
LBB0_1:
	xorl	%eax, %eax
LBB0_21:
	movb	$0, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LCPRV1_A,4,2                   ## @LCPRV1_A
	.comm	_LCPRV1_B,4,2                   ## @LCPRV1_B
	.comm	_LCPRV2_A,4,2                   ## @LCPRV2_A
	.comm	_LCPRV2_B,4,2                   ## @LCPRV2_B
	.no_dead_strip	_pg_wchar2mule_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_wchar2mule_with_len
_pg_wchar2mule_with_len:                ; @pg_wchar2mule_with_len
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	cmp	w2, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x21, x0
	mov	w20, #0
	add	w23, w2, #1
Lloh0:
	adrp	x24, _LCPRV2_B@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LCPRV2_B@GOTPAGEOFF]
Lloh2:
	adrp	x25, _LCPRV2_A@GOTPAGE
Lloh3:
	ldr	x25, [x25, _LCPRV2_A@GOTPAGEOFF]
Lloh4:
	adrp	x26, _LCPRV1_B@GOTPAGE
Lloh5:
	ldr	x26, [x26, _LCPRV1_B@GOTPAGEOFF]
Lloh6:
	adrp	x27, _LCPRV1_A@GOTPAGE
Lloh7:
	ldr	x27, [x27, _LCPRV1_A@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsr	w9, w28, #16
	mov	x8, x19
	strb	w9, [x8], #1
	mov	w9, #2
	mov	w10, #2
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x21], #4
	add	x19, x19, x9
	strb	w11, [x8]
	add	w20, w20, w10
	sub	w23, w23, #1
	cmp	w23, #1
	b.le	LBB0_21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w28, [x21]
	cbz	w28, LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ubfx	w22, w28, #16, #8
	mov	x0, x22
	bl	_IS_LC1
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_IS_LC2
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	w8, w28, #16
	strb	w8, [x19]
	ldr	w8, [x21]
	lsr	w9, w8, #8
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_IS_LCPRV1_A_RANGE
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_IS_LCPRV1_B_RANGE
	cbz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	w9, w28, #16
	strb	w8, [x19]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x19, #2
	strb	w9, [x19, #1]
	mov	w9, #3
	mov	w10, #3
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_IS_LCPRV2_A_RANGE
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	lsr	w8, w28, #16
	ldr	w9, [x25]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_IS_LCPRV2_B_RANGE
	cbz	x0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	lsr	w8, w28, #16
	ldr	w9, [x24]
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w9, [x19]
	strb	w8, [x19, #1]
	ldr	w8, [x21]
	lsr	w9, w8, #8
	add	x8, x19, #3
	strb	w9, [x19, #2]
	mov	w9, #4
	mov	w10, #4
	b	LBB0_3
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
	mov	x8, x19
	mov	w10, #1
	b	LBB0_3
LBB0_20:
	mov	w20, #0
LBB0_21:
	strb	wzr, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LCPRV1_A,4,2                   ; @LCPRV1_A
	.comm	_LCPRV1_B,4,2                   ; @LCPRV1_B
	.comm	_LCPRV2_A,4,2                   ; @LCPRV2_A
	.comm	_LCPRV2_B,4,2                   ; @LCPRV2_B
	.no_dead_strip	_pg_wchar2mule_with_len
.subsections_via_symbols
