	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_UTF7_mbrtowc_priv
__citrus_UTF7_mbrtowc_priv:             ## @_citrus_UTF7_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, %r15
	movq	%rdi, %r13
	cmpq	$0, (%rdx)
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %rsi
	leaq	-80(%rbp), %r9
	movq	%r13, %rdi
	movq	%r15, %r8
	callq	__citrus_UTF7_mbtoutf16
	movq	-80(%rbp), %rbx
	cmpq	$-2, %rbx
	jb	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, (%rcx)
	jmp	LBB0_20
LBB0_1:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	__citrus_UTF7_init_state
	movq	__ENCODING_IS_STATE_DEPENDENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_19:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_4:
	testl	%eax, %eax
	je	LBB0_5
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-44(%rbp), %ecx
	movslq	%ecx, %rax
	movq	_HISRG_MIN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jl	LBB0_14
## %bb.6:
	movq	_HISRG_MAX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_14
## %bb.7:
	subq	%rbx, %r14
	leaq	-60(%rbp), %rsi
	leaq	-80(%rbp), %r9
	movq	%r13, %rdi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	__citrus_UTF7_mbtoutf16
	movq	-80(%rbp), %rcx
	cmpq	$-2, %rcx
	jb	LBB0_9
## %bb.8:
	movl	$1, (%r15)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, (%rdx)
	jmp	LBB0_20
LBB0_9:
	testl	%eax, %eax
	jne	LBB0_20
## %bb.10:
	movl	-60(%rbp), %edx
	movq	_LOSRG_MIN@GOTPCREL(%rip), %rsi
	movl	%edx, %eax
	subl	(%rsi), %eax
	jl	LBB0_12
## %bb.11:
	movq	_LOSRG_MAX@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jg	LBB0_12
## %bb.13:
	movl	-44(%rbp), %edx
	movq	_HISRG_MIN@GOTPCREL(%rip), %rsi
	subl	(%rsi), %edx
	movl	%edx, -44(%rbp)
	movl	%eax, -60(%rbp)
	shll	$10, %edx
	orl	%eax, %edx
	movslq	%edx, %rax
	movq	_SRG_BASE@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rax
	addq	%rcx, %rbx
LBB0_14:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.15:
	movq	%rax, (%rcx)
LBB0_16:
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	jmp	LBB0_19
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	__citrus_UTF7_init_state
	jmp	LBB0_19
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$-1, (%rax)
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	__ENCODING_IS_STATE_DEPENDENT,8,3 ## @_ENCODING_IS_STATE_DEPENDENT
	.comm	_HISRG_MIN,4,2                  ## @HISRG_MIN
	.comm	_HISRG_MAX,4,2                  ## @HISRG_MAX
	.comm	_LOSRG_MIN,4,2                  ## @LOSRG_MIN
	.comm	_LOSRG_MAX,4,2                  ## @LOSRG_MAX
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_SRG_BASE,8,3                   ## @SRG_BASE
	.no_dead_strip	__citrus_UTF7_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_UTF7_mbrtowc_priv
__citrus_UTF7_mbrtowc_priv:             ; @_citrus_UTF7_mbrtowc_priv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x4
	mov	x21, x0
	ldr	x8, [x2]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x24, x3
	mov	x23, x2
	mov	x22, x1
	add	x1, sp, #12
	mov	x5, sp
	mov	x0, x21
	mov	x4, x20
	bl	__citrus_UTF7_mbtoutf16
	ldr	x25, [sp]
	cmn	x25, #2
	b.lo	LBB0_4
LBB0_2:
	str	x25, [x19]
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	bl	__citrus_UTF7_init_state
	mov	w0, #0
Lloh0:
	adrp	x8, __ENCODING_IS_STATE_DEPENDENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, __ENCODING_IS_STATE_DEPENDENT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x26, _HISRG_MIN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _HISRG_MIN@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh5:
	adrp	x10, _HISRG_MAX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HISRG_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.le	LBB0_11
; %bb.7:
	sxtw	x9, w8
	cbz	x22, LBB0_9
LBB0_8:
	str	x9, [x22]
LBB0_9:
	cbz	x9, LBB0_16
; %bb.10:
	mov	w0, #0
	b	LBB0_2
LBB0_11:
	sub	x3, x24, x25
	add	x1, sp, #8
	mov	x5, sp
	mov	x0, x21
	mov	x2, x23
	mov	x4, x20
	bl	__citrus_UTF7_mbtoutf16
	ldr	x8, [sp]
	cmn	x8, #2
	b.lo	LBB0_13
; %bb.12:
	mov	w9, #1
	str	w9, [x20]
	str	x8, [x19]
	b	LBB0_5
LBB0_13:
	cbnz	w0, LBB0_5
; %bb.14:
	ldr	w10, [sp, #8]
Lloh8:
	adrp	x9, _LOSRG_MIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LOSRG_MIN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x11, _LOSRG_MAX@GOTPAGE
Lloh12:
	ldr	x11, [x11, _LOSRG_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	subs	w9, w10, w9
	ccmp	w10, w11, #0, ge
	b.le	LBB0_17
; %bb.15:
	mov	x8, #-1
	str	x8, [x19]
Lloh14:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_16:
	str	xzr, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	__citrus_UTF7_init_state
	mov	w0, #0
	b	LBB0_5
LBB0_17:
	ldr	w10, [x26]
	ldr	w11, [sp, #12]
	sub	w10, w11, w10
	stp	w9, w10, [sp, #8]
	orr	w9, w9, w10, lsl #10
Lloh17:
	adrp	x10, _SRG_BASE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SRG_BASE@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	add	x9, x10, w9, sxtw
	add	x25, x8, x25
	cbnz	x22, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	__ENCODING_IS_STATE_DEPENDENT,8,3 ; @_ENCODING_IS_STATE_DEPENDENT
	.comm	_HISRG_MIN,4,2                  ; @HISRG_MIN
	.comm	_HISRG_MAX,4,2                  ; @HISRG_MAX
	.comm	_LOSRG_MIN,4,2                  ; @LOSRG_MIN
	.comm	_LOSRG_MAX,4,2                  ; @LOSRG_MAX
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_SRG_BASE,8,3                   ; @SRG_BASE
	.no_dead_strip	__citrus_UTF7_mbrtowc_priv
.subsections_via_symbols
