	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_mule2wchar_with_len
_pg_mule2wchar_with_len:                ## @pg_mule2wchar_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rdi, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r12), %ecx
	shll	$16, %ecx
	movl	%ecx, (%rbx)
	movzbl	1(%r12), %eax
	addq	$2, %r12
	orl	%ecx, %eax
	movl	$-2, %ecx
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, (%rbx)
	addq	$4, %rbx
	incl	%r14d
	addl	%ecx, %r15d
	jle	LBB0_19
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12), %eax
	testb	%al, %al
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	callq	_IS_LC1
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, %r15d
	jae	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r12), %edi
	callq	_IS_LCPRV1
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$3, %r15d
	jb	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%r12), %ecx
	shll	$16, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r12), %edi
	callq	_IS_LC2
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$3, %r15d
	jb	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r12), %eax
	shll	$16, %eax
	movl	%eax, (%rbx)
	movzbl	1(%r12), %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, (%rbx)
	movzbl	2(%r12), %eax
	addq	$3, %r12
	orl	%ecx, %eax
	movl	$-3, %ecx
	jmp	LBB0_18
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r12), %edi
	callq	_IS_LCPRV2
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$4, %r15d
	jb	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%r12), %eax
	shll	$16, %eax
	movl	%eax, (%rbx)
	movzbl	2(%r12), %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	movzbl	3(%r12), %eax
	addq	$4, %r12
	orl	%ecx, %eax
	movl	$-4, %ecx
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r12), %eax
	incq	%r12
	movl	$-1, %ecx
	jmp	LBB0_18
LBB0_1:
	xorl	%r14d, %r14d
LBB0_19:
	movl	$0, (%rbx)
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pg_mule2wchar_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_mule2wchar_with_len
_pg_mule2wchar_with_len:                ; @pg_mule2wchar_with_len
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	cmp	w2, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x21, x2
	mov	x22, x0
	mov	w20, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w9, [x22]
	lsl	w8, w9, #16
	str	w8, [x19]
	ldrb	w8, [x22, #1]
	add	x22, x22, #2
	bfi	w8, w9, #16, #8
	mov	w9, #-2
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x19], #4
	add	w21, w21, w9
	add	w20, w20, #1
	cmp	w21, #0
	b.le	LBB0_16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x22]
	cbz	w0, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_IS_LC1
	cmp	x0, #0
	ccmp	w21, #2, #0, ne
	b.hs	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w0, [x22]
	bl	_IS_LCPRV1
	cmp	x0, #0
	ccmp	w21, #3, #0, ne
	b.hs	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w0, [x22]
	bl	_IS_LC2
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, #3
	b.lo	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x22]
	lsl	w8, w8, #16
	str	w8, [x19]
	ldrb	w9, [x22, #1]
	bfi	w8, w9, #8, #8
	str	w8, [x19]
	ldrb	w9, [x22, #2]
	add	x22, x22, #3
	orr	w8, w8, w9
	mov	w9, #-3
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w9, [x22, #1]
	lsl	w8, w9, #16
	str	w8, [x19]
	ldrb	w8, [x22, #2]
	add	x22, x22, #3
	bfi	w8, w9, #16, #8
	mov	w9, #-3
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x22
	ldrb	w0, [x23], #1
	bl	_IS_LCPRV2
	cbz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, #4
	b.lo	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x22, #1]
	lsl	w8, w8, #16
	str	w8, [x19]
	ldrb	w9, [x22, #2]
	bfi	w8, w9, #8, #8
	str	w8, [x19]
	ldrb	w9, [x22, #3]
	add	x22, x22, #4
	orr	w8, w8, w9
	mov	w9, #-4
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x22]
	mov	w9, #-1
	mov	x22, x23
	b	LBB0_3
LBB0_15:
	mov	w20, #0
LBB0_16:
	str	wzr, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pg_mule2wchar_with_len
.subsections_via_symbols
