	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_VIQR_wcrtomb_priv
__citrus_VIQR_wcrtomb_priv:             ## @_citrus_VIQR_wcrtomb_priv
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%r8), %rbx
	cmpq	$2, %rbx
	jae	LBB0_1
## %bb.2:
	movq	%r9, %r14
	movq	%r8, %r13
	movl	%ecx, %r12d
	movq	%rdx, %r15
	cmpl	$255, %ecx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jg	LBB0_9
## %bb.3:
	movq	_mnemonic_rfc1456@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	%r12b, %ecx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_20
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	testq	%rbx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.6:
	movq	8(%r13), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_mnemonic_list_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%rax, %r15
	movq	_ESCAPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_8:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_mnemonic_list_find
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	cmoveq	%rax, %r15
	movq	8(%r13), %r14
	movl	%r12d, (%r14,%rbx,4)
	incq	%rbx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_9:
	movq	_mnemonic_ext@GOTPCREL(%rip), %rax
	movq	%rsi, %rbx
	movq	(%rax), %rsi
	movq	_mnemonic_ext_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	callq	_mnemonic_ext_find
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	movq	$0, (%r13)
	movb	(%rax), %cl
	testb	%cl, %cl
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_23
## %bb.12:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %r15
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movsbl	%cl, %ecx
	movq	8(%r13), %r14
	leaq	1(%rdx), %rbx
	movq	%rbx, (%r13)
	movl	%ecx, (%r14,%rdx,4)
	movzbl	1(%rax,%rdx), %ecx
	movq	%rbx, %rdx
	testb	%cl, %cl
	jne	LBB0_13
	jmp	LBB0_15
LBB0_20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$-1, (%rax)
	movq	_E2BIG@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_23:
	movq	8(%r13), %r14
	xorl	%ebx, %ebx
LBB0_15:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
LBB0_16:
	movq	%rsi, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	xorl	%eax, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %r15
	je	LBB0_18
## %bb.17:
	xorl	%ecx, %ecx
	movq	%rcx, (%r13)
	jmp	LBB0_22
LBB0_18:
	movl	%r12d, (%r14)
	movl	$1, %ecx
	movq	%rcx, (%r13)
	jmp	LBB0_22
LBB0_10:
	movq	$-1, (%r14)
	movq	_EILSEQ@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mnemonic_rfc1456,8,3           ## @mnemonic_rfc1456
	.comm	_ESCAPE,4,2                     ## @ESCAPE
	.comm	_mnemonic_ext,8,3               ## @mnemonic_ext
	.comm	_mnemonic_ext_size,4,2          ## @mnemonic_ext_size
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	__citrus_VIQR_wcrtomb_priv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _citrus_VIQR_wcrtomb_priv
__citrus_VIQR_wcrtomb_priv:             ; @_citrus_VIQR_wcrtomb_priv
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x25, [x4]
	cmp	x25, #2
	b.hs	LBB0_8
; %bb.1:
	mov	x20, x5
	mov	x19, x4
	mov	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x21, x0
	cmp	w3, #255
	b.gt	LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _mnemonic_rfc1456@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mnemonic_rfc1456@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	w9, w23, #0xff
	ldr	x0, [x8, w9, uxtw #3]
	cbnz	x0, LBB0_10
; %bb.3:
	cbz	x24, LBB0_15
; %bb.4:
	ldr	x24, [x21]
	cbz	x25, LBB0_7
; %bb.5:
	ldr	x26, [x19, #8]
	ldr	w1, [x26]
	mov	x0, x24
	bl	_mnemonic_list_find
	cbz	x0, LBB0_8
; %bb.6:
	mov	x24, x0
Lloh3:
	adrp	x8, _ESCAPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ESCAPE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x26]
LBB0_7:
	mov	x0, x24
	mov	x1, x23
	bl	_mnemonic_list_find
	cmp	x0, #0
	csel	x8, xzr, x25, eq
	csel	x24, xzr, x24, eq
	ldr	x25, [x19, #8]
	add	x26, x8, #1
	str	w23, [x25, x8, lsl #2]
	b	LBB0_17
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_9:
Lloh8:
	adrp	x8, _mnemonic_ext@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mnemonic_ext@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
Lloh11:
	adrp	x8, _mnemonic_ext_size@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mnemonic_ext_size@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_mnemonic_ext_find
	cbz	x0, LBB0_21
LBB0_10:
	str	xzr, [x19]
	ldrb	w10, [x0]
	cbz	w10, LBB0_16
; %bb.11:
	mov	x9, #0
	add	x8, x0, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	x24, x9
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sxtb	w10, w10
	ldr	x25, [x19, #8]
	add	x26, x9, #1
	str	x26, [x19]
	str	w10, [x25, x9, lsl #2]
	ldrb	w10, [x8, x9]
	mov	x9, x26
	cbnz	w10, LBB0_12
; %bb.14:
	mov	x24, #0
	mov	w23, #0
	b	LBB0_17
LBB0_15:
	mov	x8, #-1
	str	x8, [x20]
Lloh14:
	adrp	x8, _E2BIG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
	b	LBB0_22
LBB0_16:
	mov	x26, #0
	mov	x24, #0
	mov	w23, #0
	ldr	x25, [x19, #8]
LBB0_17:
	mov	x0, x22
	mov	x1, x25
	mov	x2, x26
	bl	_memcpy
	str	x26, [x20]
	ldr	x8, [x21]
	cmp	x24, x8
	b.eq	LBB0_19
; %bb.18:
	mov	x8, #0
	b	LBB0_20
LBB0_19:
	str	w23, [x25]
	mov	w8, #1
LBB0_20:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_23
LBB0_21:
	mov	x8, #-1
	str	x8, [x20]
Lloh16:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mnemonic_rfc1456,8,3           ; @mnemonic_rfc1456
	.comm	_ESCAPE,4,2                     ; @ESCAPE
	.comm	_mnemonic_ext,8,3               ; @mnemonic_ext
	.comm	_mnemonic_ext_size,4,2          ; @mnemonic_ext_size
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	__citrus_VIQR_wcrtomb_priv
.subsections_via_symbols
