	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_UES_mbrtowc_priv
__citrus_UES_mbrtowc_priv:              ## @_citrus_UES_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	$40, %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	(%rdx), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	cmpl	$0, (%r13)
	je	LBB0_4
## %bb.3:
	movq	%r14, %r15
	jmp	LBB0_6
LBB0_1:
	movq	%r13, %rsi
	callq	__citrus_UES_init_state
	movq	$0, (%rbx)
	jmp	LBB0_20
LBB0_4:
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.5:
	decq	%rcx
	leaq	1(%r14), %r15
	movb	(%r14), %al
	movq	8(%r13), %rdx
	movl	$1, (%r13)
	movb	%al, (%rdx)
LBB0_6:
	movq	8(%r13), %rdi
	movb	(%rdi), %dl
	movzbl	%dl, %r10d
	movq	_ESCAPE@GOTPCREL(%rip), %rax
	cmpl	%r10d, (%rax)
	jne	LBB0_7
## %bb.8:
	movl	(%r13), %eax
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.10:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.13:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movb	(%r15), %al
	incq	%r15
	movl	$2, (%r13)
	movb	%al, 1(%rdi)
	movq	8(%r13), %rdi
	movb	(%rdi), %dl
	movzbl	%dl, %r10d
	jmp	LBB0_14
LBB0_7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
LBB0_14:
	movl	(%r13), %eax
	jmp	LBB0_15
LBB0_9:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
LBB0_15:
	leal	-1(%rax), %ebx
	cmpl	$2, %eax
	jl	LBB0_17
## %bb.16:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	leaq	1(%rdi), %rsi
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	movl	%ebx, %edx
	movl	%r10d, -60(%rbp)                ## 4-byte Spill
	callq	_memmove
	movl	-60(%rbp), %r10d                ## 4-byte Reload
	movb	-41(%rbp), %dl                  ## 1-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
LBB0_17:
	movl	%ebx, (%r13)
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.18:
	movl	%r10d, (%rsi)
LBB0_19:
	movq	%r15, %rax
	subq	%r14, %rax
	xorl	%ecx, %ecx
	testb	%dl, %dl
	cmovneq	%rax, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%r15, (%r12)
	jmp	LBB0_20
LBB0_11:
	movq	%r15, %r14
LBB0_12:
	movq	%r14, (%r12)
	movq	$-2, (%rbx)
LBB0_20:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESCAPE,4,2                     ## @ESCAPE
	.comm	_MODE_C99,4,2                   ## @MODE_C99
	.comm	_UCS4_MAX,4,2                   ## @UCS4_MAX
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.no_dead_strip	__citrus_UES_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_UES_mbrtowc_priv
__citrus_UES_mbrtowc_priv:              ; @_citrus_UES_mbrtowc_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
	mov	x19, x5
	mov	x21, x4
	ldr	x24, [x2]
	cbz	x24, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x22, x1
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x25, x24
	b	LBB0_6
LBB0_3:
	mov	x1, x21
	bl	__citrus_UES_init_state
	str	xzr, [x19]
	b	LBB0_18
LBB0_4:
	cbz	x3, LBB0_17
; %bb.5:
	sub	x3, x3, #1
	mov	x25, x24
	ldrb	w8, [x25], #1
	ldr	x9, [x21, #8]
	mov	w10, #1
	str	w10, [x21]
	strb	w8, [x9]
LBB0_6:
	ldr	x0, [x21, #8]
	ldrb	w26, [x0]
Lloh0:
	adrp	x8, _ESCAPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESCAPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w26
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.8:
	cbz	x3, LBB0_16
; %bb.9:
	ldrb	w8, [x25], #1
	mov	w9, #2
	str	w9, [x21]
	strb	w8, [x0, #1]
	ldr	x0, [x21, #8]
	ldrb	w26, [x0]
LBB0_10:
	ldr	w8, [x21]
LBB0_11:
	sub	w23, w8, #1
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.12:
	add	x1, x0, #1
	mov	x2, x23
	bl	_memmove
LBB0_13:
	str	w23, [x21]
	cbz	x22, LBB0_15
; %bb.14:
	str	w26, [x22]
LBB0_15:
	sub	x8, x25, x24
	cmp	w26, #0
	csel	x8, xzr, x8, eq
	str	x8, [x19]
	str	x25, [x20]
	b	LBB0_18
LBB0_16:
	mov	x24, x25
LBB0_17:
	str	x24, [x20]
	mov	x8, #-2
	str	x8, [x19]
LBB0_18:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ESCAPE,4,2                     ; @ESCAPE
	.comm	_MODE_C99,4,2                   ; @MODE_C99
	.comm	_UCS4_MAX,4,2                   ; @UCS4_MAX
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.no_dead_strip	__citrus_UES_mbrtowc_priv
.subsections_via_symbols
