	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_HZ_mbrtowc_priv
__citrus_HZ_mbrtowc_priv:               ## @_citrus_HZ_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r13
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_44
## %bb.1:
	cmpl	$0, (%r13)
	js	LBB0_51
## %bb.2:
	movq	16(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_51
## %bb.3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	_MB_LEN_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_53
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r13), %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=3
	cmpq	%r14, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_53
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=3
	movl	$0, (%r13)
	xorl	%eax, %eax
	movl	$0, %r15d
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movq	_MB_LEN_MAX@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_53
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%r15d, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_46
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=3
	decq	%rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movsbl	(%rcx), %r14d
	incq	%rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rcx
	leal	1(%rax), %edx
	movl	%edx, (%r13)
	cltq
	movl	%r14d, (%rcx,%rax,4)
	incl	-56(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	8(%r13), %rcx
	movslq	%r15d, %rax
	movzbl	(%rcx,%rax,4), %r14d
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=3
	movzbl	%r14b, %r12d
	testl	%r15d, %r15d
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_30
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=3
	incl	%r15d
	cmpl	$2, %r15d
	jne	LBB0_34
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=3
	movl	(%rcx), %eax
	movq	_ESCAPE_CHAR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_34
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=3
	cmpl	$3, (%r13)
	jge	LBB0_51
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=3
	cmpl	%eax, %r12d
	je	LBB0_38
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	callq	_INIT0
	movq	%rax, %r14
	cmpl	$10, %r12d
	je	LBB0_7
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%r14, %rdi
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=3
	callq	_INIT
	cmpq	%r14, %rax
	je	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%r14, %r15
	jmp	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	callq	_INIT1
	movq	%rax, %r15
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_SET
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_find_escape
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_9 Depth=3
	testq	%r15, %r15
	je	LBB0_53
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%r15, %rdi
	callq	_ESC
	movq	%r15, %r14
	cmpl	%r12d, %eax
	je	LBB0_28
	jmp	LBB0_53
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	%r14, %rdi
	callq	_ESC
	cmpl	%r12d, %eax
	jne	LBB0_53
## %bb.27:                              ##   in Loop: Header=BB0_9 Depth=3
	testq	%r14, %r14
	je	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	%r14, 16(%r13)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=3
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	%r14d, %r15d
	andl	$127, %r15d
	cmpl	$31, %r15d
	jbe	LBB0_52
## %bb.31:                              ##   in Loop: Header=BB0_5 Depth=2
	testb	$-128, %r14b
	jne	LBB0_42
## %bb.32:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_GL
	movq	%rax, %rcx
	movl	$1, %r15d
	movq	_ESCAPE_CHAR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_5
## %bb.33:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_43
LBB0_34:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$-128, %r14b
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_GL
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_39
	jmp	LBB0_53
LBB0_36:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_GR
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_53
## %bb.37:                              ##   in Loop: Header=BB0_4 Depth=1
	andl	$127, %r14d
	movl	%r14d, %r12d
	jmp	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	-68(%rbp)                       ## 4-byte Folded Spill
	movl	$2, %r15d
LBB0_39:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_ranges@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	%r12d, (%rcx,%rax,8)
	jg	LBB0_53
## %bb.40:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r12d, 4(%rcx,%rax,8)
	jl	LBB0_53
## %bb.41:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-100(%rbp), %ebx                ## 4-byte Reload
	shll	$8, %ebx
	orl	%r12d, %ebx
	movl	%r15d, %ecx
	subl	-68(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%ecx, 8(%rdx)
	movq	%rdx, %rcx
	jne	LBB0_4
	jmp	LBB0_47
LBB0_42:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_GR
	movq	%rax, %rcx
	movl	$128, -52(%rbp)                 ## 4-byte Folded Spill
	movl	%r15d, %r12d
LBB0_43:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %r15d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	jne	LBB0_39
	jmp	LBB0_53
LBB0_44:
	movq	%r13, %rsi
	callq	__citrus_HZ_init_state
	movq	$1, (%r14)
LBB0_45:
	xorl	%eax, %eax
	jmp	LBB0_55
LBB0_46:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	$-2, (%rax)
	jmp	LBB0_45
LBB0_47:
	movq	_GB2312@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_49
## %bb.48:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ESC
	shll	$24, %eax
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	orl	%eax, %r12d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_50
LBB0_49:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
LBB0_50:
	orl	%ebx, %r12d
	cmpl	(%r13), %r15d
	jge	LBB0_57
LBB0_51:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_54
LBB0_52:
	movq	%rbx, %rdi
	callq	_INIT0
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_56
LBB0_53:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	$-1, (%rax)
	movq	_EILSEQ@GOTPCREL(%rip), %rax
LBB0_54:
	movl	(%rax), %eax
LBB0_55:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_56:
	movl	$1, %r15d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%r13), %r15d
	jl	LBB0_51
LBB0_57:
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx)
	testq	%rax, %rax
	je	LBB0_59
## %bb.58:
	movl	%r12d, (%rax)
LBB0_59:
	testl	%r12d, %r12d
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmovel	%r12d, %eax
	movl	$0, (%r13)
	cltq
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_45
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MB_LEN_MAX,4,2                 ## @MB_LEN_MAX
	.comm	_ESCAPE_CHAR,4,2                ## @ESCAPE_CHAR
	.comm	_ranges,8,3                     ## @ranges
	.comm	_GB2312,8,3                     ## @GB2312
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.no_dead_strip	__citrus_HZ_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_HZ_mbrtowc_priv
__citrus_HZ_mbrtowc_priv:               ; @_citrus_HZ_mbrtowc_priv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x5
	mov	x20, x4
	mov	x23, x0
	ldr	x26, [x2]
	cbz	x26, LBB0_44
; %bb.1:
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_52
; %bb.2:
	ldr	x25, [x20, #16]
	cbz	x25, LBB0_52
; %bb.3:
	mov	x24, x3
	stp	x2, x19, [sp, #24]              ; 16-byte Folded Spill
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, #0
	mov	w9, #0
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	str	wzr, [sp, #40]                  ; 4-byte Folded Spill
	mov	w19, #0
	mov	w21, #0
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
Lloh0:
	adrp	x8, _MB_LEN_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MB_LEN_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, w8
	b.gt	LBB0_57
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x22, x0
	ldr	w8, [x20]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=3
	cmp	x25, x28
	b.ne	LBB0_57
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=3
	mov	w8, #0
	mov	w21, #0
	str	wzr, [x20]
Lloh3:
	adrp	x9, _MB_LEN_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MB_LEN_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w19, w9
	b.gt	LBB0_57
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w8, w21
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	cbz	x24, LBB0_45
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=3
	sub	x24, x24, #1
	ldrsb	w28, [x26], #1
	ldr	x9, [x20, #8]
	add	w10, w8, #1
	str	w10, [x20]
	str	w28, [x9, w8, sxtw #2]
	add	w19, w19, #1
	and	w27, w28, #0xff
	cbnz	w21, LBB0_13
	b	LBB0_29
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	x9, [x20, #8]
	sbfiz	x8, x21, #2, #32
	ldrb	w28, [x9, x8]
	and	w27, w28, #0xff
	cbz	w21, LBB0_29
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=3
	add	w21, w21, #1
	cmp	w21, #2
	b.ne	LBB0_33
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _ESCAPE_CHAR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ESCAPE_CHAR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_33
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	w9, [x20]
	cmp	w9, #3
	b.ge	LBB0_52
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=3
	cmp	w27, w8
	b.eq	LBB0_37
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	x0, x23
	bl	_INIT0
	mov	x28, x0
	cmp	w27, #10
	b.eq	LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=3
	cmp	x25, x28
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	x0, x25
	bl	_INIT
	cmp	x0, x28
	b.eq	LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	x21, x28
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=3
	mov	x0, x23
	bl	_INIT1
	mov	x21, x0
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=3
	mov	x0, x25
	bl	_SET
	mov	x1, x27
	bl	_find_escape
	mov	x28, x0
	cbnz	x0, LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_9 Depth=3
	cbz	x21, LBB0_57
; %bb.24:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	x0, x21
	bl	_ESC
	mov	x28, x21
	cmp	w0, w27
	b.eq	LBB0_27
	b	LBB0_57
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=3
	mov	x0, x28
	bl	_ESC
	cmp	w0, w27
	b.ne	LBB0_57
; %bb.26:                               ;   in Loop: Header=BB0_9 Depth=3
	cbz	x28, LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_9 Depth=3
	str	x28, [x20, #16]
	mov	x25, x28
	b	LBB0_8
LBB0_28:                                ;   in Loop: Header=BB0_9 Depth=3
	mov	x21, #0
	b	LBB0_22
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=2
	and	w21, w28, #0x7f
	cmp	w21, #31
	b.ls	LBB0_56
; %bb.30:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x25
	tbnz	w28, #7, LBB0_41
; %bb.31:                               ;   in Loop: Header=BB0_5 Depth=2
	bl	_GL
Lloh9:
	adrp	x8, _ESCAPE_CHAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ESCAPE_CHAR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w21, #1
	cmp	w27, w8
	b.eq	LBB0_5
; %bb.32:                               ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	b	LBB0_42
LBB0_33:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	tbnz	w28, #7, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_GL
	cmp	x22, x0
	b.eq	LBB0_38
	b	LBB0_57
LBB0_35:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_GR
	cmp	x22, x0
	b.ne	LBB0_57
; %bb.36:                               ;   in Loop: Header=BB0_4 Depth=1
	and	w27, w28, #0x7f
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #40]                   ; 4-byte Folded Reload
	add	w8, w8, #1
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	mov	w21, #2
LBB0_38:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh12:
	adrp	x8, _ranges@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ranges@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x8]
	ldr	x8, [x22]
	lsl	x10, x8, #3
	ldr	w10, [x9, x10]
	cmp	w10, w27
	b.gt	LBB0_57
; %bb.39:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, x8, lsl #3
	ldr	w9, [x9, #4]
	cmp	w9, w27
	b.lt	LBB0_57
; %bb.40:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	w10, w9, [sp, #40]              ; 8-byte Folded Reload
	bfi	w27, w9, #8, #24
	mov	x0, x22
	ldr	w9, [x22, #8]
	sub	w10, w21, w10
	cmp	w9, w10
	mov	x9, x27
	b.ne	LBB0_4
	b	LBB0_47
LBB0_41:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_GR
	mov	w8, #128
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	mov	x27, x21
LBB0_42:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x0, LBB0_57
; %bb.43:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	mov	w21, #1
	b	LBB0_38
LBB0_44:
	mov	x0, x23
	mov	x1, x20
	bl	__citrus_HZ_init_state
	mov	w0, #0
	mov	w8, #1
	str	x8, [x19]
	b	LBB0_59
LBB0_45:
	mov	w0, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x26, [x8]
	mov	x8, #-2
LBB0_46:
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [x9]
	b	LBB0_59
LBB0_47:
Lloh15:
	adrp	x9, _GB2312@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GB2312@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_49
; %bb.48:
	mov	x0, x25
	bl	_ESC
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	orr	w8, w8, w0, lsl #24
	b	LBB0_50
LBB0_49:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
LBB0_50:
	orr	w27, w8, w27
LBB0_51:
	ldr	w8, [x20]
	cmp	w21, w8
	b.ge	LBB0_53
LBB0_52:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_58
LBB0_53:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x26, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x8, LBB0_55
; %bb.54:
	str	w27, [x8]
LBB0_55:
	mov	w0, #0
	str	wzr, [x20]
	cmp	w27, #0
	csel	w8, wzr, w19, eq
	sxtw	x8, w8
	b	LBB0_46
LBB0_56:
	mov	x0, x23
	bl	_INIT0
	cmp	x25, x0
	b.eq	LBB0_60
LBB0_57:
	mov	x8, #-1
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [x9]
Lloh20:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
LBB0_58:
	ldr	w0, [x8]
LBB0_59:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_60:
	mov	w21, #1
	b	LBB0_51
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MB_LEN_MAX,4,2                 ; @MB_LEN_MAX
	.comm	_ESCAPE_CHAR,4,2                ; @ESCAPE_CHAR
	.comm	_ranges,8,3                     ; @ranges
	.comm	_GB2312,8,3                     ; @GB2312
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.no_dead_strip	__citrus_HZ_mbrtowc_priv
.subsections_via_symbols
