	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_UTF1632_mbrtowc_priv
__citrus_UTF1632_mbrtowc_priv:          ## @_citrus_UTF1632_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	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r8), %r15d
	movl	(%rdi), %r12d
	movq	__MODE_UTF32@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	xorl	%r14d, %r14d
	xorl	%esi, %esi
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %r11d
	jmp	LBB0_4
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$128, %esi
	cmpl	$254, 4(%r11)
	jne	LBB0_16
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%esi, 16(%r8)
	xorl	%r11d, %r11d
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	testl	%r12d, %r13d
	setne	%r9b
	cmpl	$2, %r11d
	setge	%r10b
	orb	%r9b, %r10b
	movzbl	%r10b, %esi
	leal	(%rsi,%rsi), %r15d
	addl	$2, %r15d
	cmpl	%r15d, %r11d
	jge	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movslq	%r11d, %rsi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	subq	$1, %rcx
	jb	LBB0_48
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=3
	movsbl	(%rax), %ebx
	incq	%rax
	movq	8(%r8), %rdx
	movl	%ebx, (%rdx,%rsi,4)
	incq	%rsi
	incq	%r14
	cmpl	%esi, %r15d
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rdi), %r12d
	movq	__MODE_UTF32@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%r11d, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%r8), %r11
	movl	(%r11), %r9d
	testl	%r12d, %r13d
	je	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$255, %r9d
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=2
	testl	%r9d, %r9d
	jne	LBB0_26
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r9d, %r9d
	cmpl	$0, 4(%r11)
	jne	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$254, 8(%r11)
	jne	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$129, %esi
	cmpl	$255, 12(%r11)
	je	LBB0_22
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$255, %r9d
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$254, %r9d
	jne	LBB0_26
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$129, %esi
	cmpl	$255, 4(%r11)
	je	LBB0_22
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$255, %r9d
	cmpl	$254, 4(%r11)
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, 8(%r11)
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$128, %esi
	cmpl	$0, 12(%r11)
	je	LBB0_22
	jmp	LBB0_26
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$255, %r9d
	jmp	LBB0_26
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$254, %r9d
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	__MODE_FORCE_ENDIAN@GOTPCREL(%rip), %rdx
	testl	%r12d, (%rdx)
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r8), %esi
	movq	__ENDIAN_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %esi
	jne	LBB0_29
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rdi), %esi
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r13d
	jne	LBB0_42
## %bb.30:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	%r10b, %r10b
	jne	LBB0_36
## %bb.31:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %esi
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %esi
	jne	LBB0_39
## %bb.33:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r11), %esi
	jmp	LBB0_35
LBB0_34:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r9d, %esi
	movl	4(%r11), %r9d
LBB0_35:                                ##   in Loop: Header=BB0_3 Depth=1
	shll	$8, %esi
	orl	%r9d, %esi
	movl	%esi, %edx
	andl	$-1024, %edx                    ## imm = 0xFC00
	cmpl	$55296, %edx                    ## imm = 0xD800
	je	LBB0_3
	jmp	LBB0_47
LBB0_48:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	$-2, (%rcx)
	movl	%esi, (%r8)
LBB0_49:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_50
LBB0_1:
	movq	%r8, %rsi
	callq	__citrus_UTF1632_init_state
	movq	$0, (%rbx)
LBB0_50:
	xorl	%eax, %eax
LBB0_51:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	cmpl	$129, %esi
	je	LBB0_45
## %bb.43:
	cmpl	$128, %esi
	jne	LBB0_39
## %bb.44:
	movl	4(%r11), %edx
	movl	8(%r11), %ecx
	shll	$8, %edx
	orl	%r9d, %edx
	shll	$16, %ecx
	orl	%edx, %ecx
	movl	12(%r11), %r9d
	jmp	LBB0_46
LBB0_36:
	cmpl	$129, %esi
	je	LBB0_40
## %bb.37:
	cmpl	$128, %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jne	LBB0_39
## %bb.38:
	movl	12(%r11), %ecx
	leal	-224(%rcx), %edx
	movl	$2, %esi
	cmpl	$-4, %edx
	jb	LBB0_39
	jmp	LBB0_41
LBB0_45:
	movl	4(%r11), %ecx
	movl	8(%r11), %edx
	shll	$8, %edx
	orl	12(%r11), %edx
	shll	$16, %ecx
	orl	%edx, %ecx
LBB0_46:
	shll	$24, %r9d
	orl	%ecx, %r9d
	movl	%r9d, %ecx
	andl	$-2048, %ecx                    ## imm = 0xF800
	movl	%r9d, %esi
	cmpl	$55296, %ecx                    ## imm = 0xD800
	je	LBB0_39
	jmp	LBB0_47
LBB0_40:
	movl	8(%r11), %ecx
	leal	-224(%rcx), %edx
	movl	$3, %esi
	cmpl	$-4, %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jae	LBB0_41
LBB0_39:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$-1, (%rax)
	movl	$0, (%r8)
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_51
LBB0_41:
	shll	$10, %edi
	addl	$-56623104, %edi                ## imm = 0xFCA00000
	andl	$3, %ecx
	shll	$8, %ecx
	orl	%edi, %ecx
	orl	(%r11,%rsi,4), %ecx
	addl	$65536, %ecx                    ## imm = 0x10000
	movl	%ecx, %esi
LBB0_47:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%esi, (%rcx)
	movl	$0, (%r8)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, (%rcx)
	jmp	LBB0_49
	.cfi_endproc
                                        ## -- End function
	.comm	__MODE_UTF32,4,2                ## @_MODE_UTF32
	.comm	__MODE_FORCE_ENDIAN,4,2         ## @_MODE_FORCE_ENDIAN
	.comm	__ENDIAN_UNKNOWN,4,2            ## @_ENDIAN_UNKNOWN
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.no_dead_strip	__citrus_UTF1632_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_UTF1632_mbrtowc_priv
__citrus_UTF1632_mbrtowc_priv:          ; @_citrus_UTF1632_mbrtowc_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
	mov	x19, x5
	ldr	x8, [x2]
	cbz	x8, LBB0_40
; %bb.1:
	mov	x9, #0
	mov	w10, #0
	ldr	w5, [x4]
	ldr	w16, [x0]
Lloh0:
	adrp	x11, __MODE_UTF32@GOTPAGE
Lloh1:
	ldr	x11, [x11, __MODE_UTF32@GOTPAGEOFF]
	ldr	w17, [x11]
	mov	w12, #2
	mov	w13, #4
Lloh2:
	adrp	x14, __MODE_FORCE_ENDIAN@GOTPAGE
Lloh3:
	ldr	x14, [x14, __MODE_FORCE_ENDIAN@GOTPAGEOFF]
Lloh4:
	adrp	x15, __ENDIAN_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x15, [x15, __ENDIAN_UNKNOWN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	mov	x7, x5
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	w5, #129
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	w7, #0
	str	w5, [x4, #16]
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	tst	w17, w16
	ccmp	w7, #1, #0, eq
	cset	w6, gt
	cmp	w6, #0
	csel	w5, w13, w12, ne
	cmp	w7, w5
	b.ge	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	sbfiz	x16, x7, #2, #32
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbz	x3, LBB0_38
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	ldrsb	w17, [x8], #1
	ldr	x20, [x4, #8]
	str	w17, [x20, x16]
	sub	x3, x3, #1
	add	x9, x9, #1
	add	w7, w7, #1
	add	x16, x16, #4
	cmp	w5, w7
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w16, [x0]
	ldr	w17, [x11]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x5, x7
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x7, [x4, #8]
	ldr	w20, [x7]
	ands	w21, w17, w16
	b.eq	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	cmp	w20, #255
	b.eq	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=2
	cbnz	w20, LBB0_27
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	w20, [x7, #4]
	cbnz	w20, LBB0_26
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	w20, [x7, #8]
	cmp	w20, #254
	b.ne	LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	w20, [x7, #12]
	cmp	w20, #255
	b.eq	LBB0_3
	b	LBB0_26
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w20, #255
	b.eq	LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=2
	cmp	w20, #254
	b.ne	LBB0_27
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	w20, [x7, #4]
	cmp	w20, #255
	b.eq	LBB0_3
	b	LBB0_37
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w20, [x7, #4]
	cmp	w20, #254
	b.ne	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	w20, [x7, #8]
	cbnz	w20, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	w20, [x7, #12]
	cbz	w20, LBB0_24
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w20, [x7, #4]
	cmp	w20, #254
	b.ne	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w5, #128
	b	LBB0_4
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w20, #255
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w20, #0
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w22, [x14]
	tst	w22, w16
	b.ne	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w22, [x4, #16]
	ldr	w23, [x15]
	cmp	w22, w23
	b.ne	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w22, [x0, #4]
LBB0_30:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #129
	cbnz	w21, LBB0_42
; %bb.31:                               ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w6, #0, LBB0_45
; %bb.32:                               ;   in Loop: Header=BB0_2 Depth=1
	b.eq	LBB0_35
; %bb.33:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #128
	b.ne	LBB0_52
; %bb.34:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x7, #4]
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, x20
	ldr	w20, [x7, #4]
LBB0_36:                                ;   in Loop: Header=BB0_2 Depth=1
	orr	w10, w20, w10, lsl #8
	lsr	w6, w10, #10
	cmp	w6, #54
	b.eq	LBB0_2
	b	LBB0_55
LBB0_37:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w20, #254
	b	LBB0_27
LBB0_38:
	mov	w0, #0
	mov	x9, #-2
	str	x9, [x19]
	str	w7, [x4]
LBB0_39:
	str	x8, [x2]
	b	LBB0_41
LBB0_40:
	mov	x1, x4
	bl	__citrus_UTF1632_init_state
	mov	w0, #0
	str	xzr, [x19]
LBB0_41:
	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_42:
	b.eq	LBB0_49
; %bb.43:
	cmp	w22, #128
	b.ne	LBB0_52
; %bb.44:
	ldp	w10, w11, [x7, #4]
	orr	w10, w20, w10, lsl #8
	orr	w10, w10, w11, lsl #16
	ldr	w20, [x7, #12]
	b	LBB0_50
LBB0_45:
	b.eq	LBB0_51
; %bb.46:
	cmp	w22, #128
	b.ne	LBB0_52
; %bb.47:
	ldr	w11, [x7, #12]
	sub	w12, w11, #224
	cmn	w12, #4
	b.lo	LBB0_52
; %bb.48:
	mov	w12, #2
	b	LBB0_54
LBB0_49:
	ldp	w11, w10, [x7, #8]
	ldr	w12, [x7, #4]
	orr	w10, w10, w11, lsl #8
	orr	w10, w10, w12, lsl #16
LBB0_50:
	orr	w10, w10, w20, lsl #24
	lsr	w11, w10, #11
	cmp	w11, #27
	b.eq	LBB0_52
	b	LBB0_55
LBB0_51:
	ldr	w11, [x7, #8]
	sub	w12, w11, #224
	cmn	w12, #4
	b.hs	LBB0_53
LBB0_52:
	mov	x8, #-1
	str	x8, [x19]
	str	wzr, [x4]
Lloh6:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_41
LBB0_53:
	mov	w12, #3
LBB0_54:
	mov	w13, #-56623104
	add	w10, w13, w10, lsl #10
	ldr	w12, [x7, x12, lsl #2]
	ubfiz	w11, w11, #8, #2
	orr	w10, w11, w10
	orr	w10, w10, w12
	add	w10, w10, #16, lsl #12          ; =65536
LBB0_55:
	mov	w0, #0
	str	w10, [x1]
	str	wzr, [x4]
	str	x9, [x19]
	b	LBB0_39
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	__MODE_UTF32,4,2                ; @_MODE_UTF32
	.comm	__MODE_FORCE_ENDIAN,4,2         ; @_MODE_FORCE_ENDIAN
	.comm	__ENDIAN_UNKNOWN,4,2            ; @_ENDIAN_UNKNOWN
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.no_dead_strip	__citrus_UTF1632_mbrtowc_priv
.subsections_via_symbols
