	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_euccn2wchar_with_len
_pg_euccn2wchar_with_len:               ## @pg_euccn2wchar_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_15
## %bb.1:
	movl	%edx, %r15d
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	movq	_SS2@GOTPCREL(%rip), %r9
	movq	_SS3@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	(%r9), %dil
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %r15d
	jae	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpb	(%r13), %dil
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$3, %r15d
	jb	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	shll	$16, %edi
	leaq	2(%rbx), %rcx
	movzbl	1(%rbx), %eax
	shll	$8, %eax
	orl	%edi, %eax
	movl	$-3, %edx
	movl	$3, %edi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%r12)
	addq	%rdi, %rbx
	movzbl	(%rcx), %esi
	orl	%eax, %esi
	movq	%rbx, %rcx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, (%r12)
	addq	$4, %r12
	incl	%r14d
	movq	%rcx, %rbx
	addl	%edx, %r15d
	jg	LBB0_2
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_IS_HIGHBIT_SET
	leaq	1(%rbx), %rcx
	movzbl	(%rbx), %esi
	movl	$-1, %edx
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %r15d
	jb	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	shll	$8, %esi
	movl	$-2, %edx
	movl	$2, %edi
	movl	%esi, %eax
	movq	_SS2@GOTPCREL(%rip), %r9
	jmp	LBB0_8
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SS2@GOTPCREL(%rip), %r9
	jmp	LBB0_9
LBB0_15:
	xorl	%r14d, %r14d
LBB0_16:
	movl	$0, (%r12)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SS2,1,0                        ## @SS2
	.comm	_SS3,1,0                        ## @SS3
	.no_dead_strip	_pg_euccn2wchar_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_euccn2wchar_with_len
_pg_euccn2wchar_with_len:               ; @pg_euccn2wchar_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_11
; %bb.1:
	mov	x21, x2
	mov	x22, x0
	mov	w20, #0
Lloh0:
	adrp	x23, _SS2@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SS2@GOTPAGEOFF]
Lloh2:
	adrp	x24, _SS3@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SS3@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x22]
	cbz	w0, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x23]
	cmp	w0, w8
	ccmp	w21, #3, #0, eq
	b.hs	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x24]
	cmp	w0, w8
	ccmp	w21, #3, #0, eq
	b.hs	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_IS_HIGHBIT_SET
	mov	x8, x22
	ldrb	w10, [x8], #1
	mov	w9, #-1
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, #2
	b.lo	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	w10, w10, #8
	mov	w9, #-2
	mov	w11, #2
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	w10, w0, #16
	add	x8, x22, #2
	ldrb	w9, [x22, #1]
	bfi	w10, w9, #8, #8
	mov	w9, #-3
	mov	w11, #3
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w10, [x19]
	ldrb	w8, [x8]
	add	x11, x22, x11
	orr	w10, w10, w8
	mov	x8, x11
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w10, [x19], #4
	add	w21, w21, w9
	add	w20, w20, #1
	mov	x22, x8
	cmp	w21, #0
	b.gt	LBB0_2
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SS2,1,0                        ; @SS2
	.comm	_SS3,1,0                        ; @SS3
	.no_dead_strip	_pg_euccn2wchar_with_len
.subsections_via_symbols
