	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_VIQR_mbrtowc_priv
__citrus_VIQR_mbrtowc_priv:             ## @_citrus_VIQR_mbrtowc_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r13
	movq	%rdi, %r10
	movq	(%rdx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r10), %r11
	xorl	%r14d, %r14d
	movq	_ESCAPE@GOTPCREL(%rip), %r9
	movq	%r11, %rax
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r8
	movq	%r11, -88(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, %r15
	movl	(%r9), %eax
	movb	$1, %dil
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r14, (%r13)
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	decq	%rcx
	movsbq	(%r8), %rdx
	incq	%r8
	movq	8(%r13), %rbx
	leaq	1(%r14), %rsi
	movq	%rsi, (%r13)
	movq	%rdx, (%rbx,%r14,8)
	movq	%rsi, %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%r13), %rbx
	movq	(%rbx,%r14,8), %rdx
	incq	%r14
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movzbl	%dl, %r12d
	cmpl	%eax, %r12d
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edi, %edi
	cmpq	%r11, %r15
	je	LBB0_4
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %dil
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(%r15), %rdi
	movl	%r12d, %esi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	callq	_mnemonic_list_find
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-104(%rbp), %r10                ## 8-byte Reload
	movq	_ESCAPE@GOTPCREL(%rip), %r9
	movq	-88(%rbp), %r11                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_14
LBB0_11:
	movl	%eax, %r12d
LBB0_14:
	cmpq	%r11, %r15
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	je	LBB0_15
## %bb.16:
	movq	(%r10), %rax
	decq	%r14
	movq	%r14, %rdx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %r14
	movq	(%r15), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%r15), %r15
	leaq	-1(%r14), %rdx
	cmpq	%r11, %r15
	jne	LBB0_17
## %bb.19:
	movq	%r11, %r15
LBB0_20:
	cmpq	%rax, %rcx
	setne	%al
	jmp	LBB0_21
LBB0_1:
	movq	%r10, %rdi
	movq	%r13, %rsi
	callq	__citrus_VIQR_init_state
	movq	__ENCODING_IS_STATE_DEPENDENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_27
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r8, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$-2, (%rax)
	jmp	LBB0_27
LBB0_15:
	xorl	%eax, %eax
	movq	%r11, %r15
LBB0_21:
	cmpl	(%r9), %r12d
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	addq	%r14, %rax
	movq	(%r13), %rdx
	subq	%rax, %rdx
	movq	%rdx, (%r13)
	leaq	(%rbx,%rax,8), %rsi
	movq	%rbx, %rdi
	callq	_memmove
	cmpq	-88(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_22
## %bb.23:
	movq	(%r15), %rax
	jmp	LBB0_24
LBB0_22:
	movl	%r12d, %eax
LBB0_24:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.25:
	movq	%rax, (%rcx)
LBB0_26:
	movq	%rbx, %rcx
	subq	%rdi, %rcx
	testq	%rax, %rax
	cmoveq	%rax, %rcx
	movq	%rcx, (%rdx)
	movq	%rbx, (%rsi)
LBB0_27:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__ENCODING_IS_STATE_DEPENDENT,8,3 ## @_ENCODING_IS_STATE_DEPENDENT
	.comm	_ESCAPE,4,2                     ## @ESCAPE
	.no_dead_strip	__citrus_VIQR_mbrtowc_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_mbrtowc_priv
__citrus_VIQR_mbrtowc_priv:             ; @_citrus_VIQR_mbrtowc_priv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x5
	mov	x22, x4
	mov	x24, x0
	ldr	x27, [x2]
	cbz	x27, LBB0_18
; %bb.1:
	mov	x25, x3
	stp	x1, x2, [sp, #8]                ; 16-byte Folded Spill
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	mov	x20, #0
	ldr	x19, [x24, #8]
Lloh0:
	adrp	x12, _ESCAPE@GOTPAGE
Lloh1:
	ldr	x12, [x12, _ESCAPE@GOTPAGEOFF]
	mov	x0, x19
	mov	x28, x27
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x21, x0
	ldr	w8, [x12]
	mov	w9, #1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x22]
	cmp	x10, x20
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	cbz	x25, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	sub	x25, x25, #1
	ldrsb	x10, [x28], #1
	ldr	x23, [x22, #8]
	add	x11, x20, #1
	str	x11, [x22]
	str	x10, [x23, x20, lsl #3]
	mov	x20, x11
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=2
	ldr	x23, [x22, #8]
	ldr	x10, [x23, x20, lsl #3]
	add	x20, x20, #1
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=2
	and	w26, w10, #0xff
	cmp	w26, w8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	w9, #0
	cmp	x21, x19
	b.eq	LBB0_3
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbz	w9, #0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x21, #16
	mov	x1, x26
	str	x27, [sp]                       ; 8-byte Folded Spill
	mov	x27, x12
	bl	_mnemonic_list_find
	mov	x12, x27
	ldr	x27, [sp]                       ; 8-byte Folded Reload
	cbnz	x0, LBB0_2
	b	LBB0_12
LBB0_11:
	mov	x26, x8
LBB0_12:
	cmp	x21, x19
	b.eq	LBB0_20
; %bb.13:
	ldr	x8, [x24]
	sub	x10, x20, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x20, x10
	ldr	x9, [x21]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x21, [x21, #8]
	sub	x10, x20, #1
	cmp	x21, x19
	b.ne	LBB0_14
; %bb.16:
	mov	x21, x19
LBB0_17:
	cmp	x9, x8
	cset	w8, ne
	b	LBB0_21
LBB0_18:
	mov	x0, x24
	mov	x1, x22
	bl	__citrus_VIQR_init_state
Lloh2:
	adrp	x8, __ENCODING_IS_STATE_DEPENDENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, __ENCODING_IS_STATE_DEPENDENT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_27
LBB0_19:
	ldp	x8, x9, [sp, #16]               ; 16-byte Folded Reload
	str	x28, [x8]
	mov	x8, #-2
	str	x8, [x9]
	b	LBB0_27
LBB0_20:
	mov	w8, #0
	mov	x21, x19
LBB0_21:
	ldr	w9, [x12]
	cmp	w26, w9
	cset	w9, eq
	and	w8, w9, w8
	ldr	x9, [x22]
	add	x8, x20, x8
	sub	x2, x9, x8
	str	x2, [x22]
	add	x1, x23, x8, lsl #3
	mov	x0, x23
	bl	_memmove
	cmp	x21, x19
	b.eq	LBB0_23
; %bb.22:
	ldr	x8, [x21]
	b	LBB0_24
LBB0_23:
	mov	w8, w26
LBB0_24:
	ldp	x11, x10, [sp, #16]             ; 16-byte Folded Reload
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x9, LBB0_26
; %bb.25:
	str	x8, [x9]
LBB0_26:
	sub	x9, x28, x27
	cmp	x8, #0
	csel	x8, xzr, x9, eq
	str	x8, [x10]
	str	x28, [x11]
LBB0_27:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__ENCODING_IS_STATE_DEPENDENT,8,3 ; @_ENCODING_IS_STATE_DEPENDENT
	.comm	_ESCAPE,4,2                     ; @ESCAPE
	.no_dead_strip	__citrus_VIQR_mbrtowc_priv
.subsections_via_symbols
