	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_ISO2022_wcrtomb_priv
__citrus_ISO2022_wcrtomb_priv:          ## @_citrus_ISO2022_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	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movl	%ecx, %r15d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MB_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	subq	$8, %rsp
	leaq	-72(%rbp), %rax
	leaq	-96(%rbp), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	movq	%r14, %r9
	pushq	%rax
	callq	__ISO2022_sputwchar
	addq	$16, %rsp
	movq	-72(%rbp), %rdx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rdx, (%rcx)
	jmp	LBB0_6
LBB0_2:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpq	%rbx, %rdx
	ja	LBB0_4
## %bb.3:
	cmpq	%rax, %rdx
	ja	LBB0_4
## %bb.5:
	movq	%r13, %rsi
	callq	_memcpy
	movq	-72(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	$-1, (%r14)
	movq	_E2BIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_LEN_MAX,4,2                 ## @MB_LEN_MAX
	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	__citrus_ISO2022_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_ISO2022_wcrtomb_priv
__citrus_ISO2022_wcrtomb_priv:          ; @_citrus_ISO2022_wcrtomb_priv
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x19, x5
	mov	x5, x4
	mov	x21, x2
	mov	x20, x1
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MB_LEN_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MB_LEN_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	sub	x4, x29, #64
	sub	x6, x29, #72
	mov	x1, x3
	mov	x2, x23
	mov	x3, x22
	bl	__ISO2022_sputwchar
	ldur	x2, [x29, #-72]
	cbz	w0, LBB0_2
; %bb.1:
	str	x2, [x19]
	b	LBB0_5
LBB0_2:
	cmp	x2, x22
	ccmp	x2, x21, #2, ls
	b.ls	LBB0_4
; %bb.3:
	mov	x8, #-1
	str	x8, [x19]
Lloh8:
	adrp	x8, _E2BIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x23
	bl	_memcpy
	mov	w0, #0
	ldur	x8, [x29, #-72]
	str	x8, [x19]
LBB0_5:
	mov	sp, x24
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_LEN_MAX,4,2                 ; @MB_LEN_MAX
	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	__citrus_ISO2022_wcrtomb_priv
.subsections_via_symbols
