	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_UTF7_wcrtomb_priv
__citrus_UTF7_wcrtomb_priv:             ## @_citrus_UTF7_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_UTF16_MAX@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jge	LBB0_1
## %bb.2:
	movq	_UTF32_MAX@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jge	LBB0_3
## %bb.11:
	movq	$-1, (%r9)
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_1:
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movslq	%r14d, %r15
	movq	%r15, -64(%rbp)
	movl	$1, %eax
	jmp	LBB0_4
LBB0_3:
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	_SRG_BASE@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %eax
	sarl	$10, %eax
	movslq	%eax, %r15
	movq	_HISRG_MIN@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, -64(%rbp)
	movl	$1023, %edi                     ## imm = 0x3FF
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, %r13
	callq	_UINT32_C
	movq	%r13, %r8
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	andl	%r14d, %eax
	cltq
	movq	_LOSRG_MIN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, -56(%rbp)
	movl	$2, %eax
LBB0_4:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-96(%rbp), %r9
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%r8, %r15
	callq	__citrus_UTF7_utf16tomb
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	%r13, %r14
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rax
	addq	%rax, %r15
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	subq	%rax, %r12
	addq	%rax, %rbx
	movq	-64(%rbp,%r13,8), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	leaq	-96(%rbp), %r9
	callq	__citrus_UTF7_utf16tomb
	incq	%r13
	testl	%eax, %eax
	je	LBB0_6
	jmp	LBB0_9
LBB0_8:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UTF16_MAX,4,2                  ## @UTF16_MAX
	.comm	_UTF32_MAX,4,2                  ## @UTF32_MAX
	.comm	_SRG_BASE,8,3                   ## @SRG_BASE
	.comm	_HISRG_MIN,8,3                  ## @HISRG_MIN
	.comm	_LOSRG_MIN,8,3                  ## @LOSRG_MIN
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.no_dead_strip	__citrus_UTF7_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_UTF7_wcrtomb_priv
__citrus_UTF7_wcrtomb_priv:             ; @_citrus_UTF7_wcrtomb_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	x20, x5
	mov	x19, x4
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _UTF16_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UTF16_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	cmp	w26, w22
	b.ge	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _UTF32_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UTF32_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ge	LBB0_4
; %bb.2:
	mov	x8, #-1
	str	x8, [x20]
Lloh9:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_3:
	sxtw	x25, w22
	str	x25, [sp, #8]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _SRG_BASE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SRG_BASE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	sub	w27, w22, w8
	asr	w8, w27, #10
Lloh15:
	adrp	x9, _HISRG_MIN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HISRG_MIN@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x25, x9, w8, sxtw
	str	x25, [sp, #8]
	mov	w0, #1023
	bl	_UINT32_C
	and	w8, w0, w27
Lloh18:
	adrp	x9, _LOSRG_MIN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LOSRG_MIN@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x8, x9, w8, sxtw
	str	x8, [sp, #16]
LBB0_5:
	mov	x5, sp
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	mov	x4, x19
	bl	__citrus_UTF7_utf16tomb
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	x25, [sp]
	cmp	w26, w22
	b.ge	LBB0_10
; %bb.7:
	sub	x24, x24, x25
	add	x23, x23, x25
	ldr	x3, [sp, #16]
	mov	x5, sp
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	x4, x19
	bl	__citrus_UTF7_utf16tomb
	cbnz	w0, LBB0_11
; %bb.8:
	ldr	x8, [sp]
	cmp	w26, w22
	b.ge	LBB0_13
; %bb.9:
	add	x25, x8, x25
LBB0_10:
	mov	w0, #0
	str	x25, [x20]
LBB0_11:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	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
LBB0_13:
	sub	x2, x24, x8
	add	x1, x23, x8
	ldr	x3, [sp, #24]
	mov	x5, sp
	mov	x0, x21
	mov	x4, x19
	bl	__citrus_UTF7_utf16tomb
	b	LBB0_11
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_UTF16_MAX,4,2                  ; @UTF16_MAX
	.comm	_UTF32_MAX,4,2                  ; @UTF32_MAX
	.comm	_SRG_BASE,8,3                   ; @SRG_BASE
	.comm	_HISRG_MIN,8,3                  ; @HISRG_MIN
	.comm	_LOSRG_MIN,8,3                  ; @LOSRG_MIN
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.no_dead_strip	__citrus_UTF7_wcrtomb_priv
.subsections_via_symbols
