	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_GBK2K_wcrtomb_priv
__citrus_GBK2K_wcrtomb_priv:            ## @_citrus_GBK2K_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	cmpq	$0, (%r8)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %r15
	jmp	LBB0_2
LBB0_3:
	movq	%r8, %r13
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, %edi
	callq	__mb_count
	cmpq	%r15, %rax
	jbe	LBB0_5
## %bb.4:
	movq	_E2BIG@GOTPCREL(%rip), %r15
LBB0_2:
	movl	(%r15), %ebx
	movq	$-1, (%r14)
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$4, %rax
	je	LBB0_12
## %bb.6:
	cmpq	$2, %rax
	je	LBB0_10
## %bb.7:
	cmpq	$1, %rax
	jne	LBB0_18
## %bb.8:
	movl	%r12d, %edi
	callq	__PUSH_PSENC
	movl	%eax, %edi
	callq	__mb_singlebyte
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:
	movq	_EILSEQ@GOTPCREL(%rip), %r15
	jmp	LBB0_2
LBB0_12:
	movq	_EILSEQ@GOTPCREL(%rip), %r15
	cmpl	$4, (%rbx)
	jne	LBB0_2
## %bb.13:
	movl	%r12d, %edi
	sarl	$24, %edi
	callq	__PUSH_PSENC
	movl	%eax, %edi
	callq	__mb_leadbyte
	testl	%eax, %eax
	je	LBB0_2
## %bb.14:
	movl	%r12d, %edi
	sarl	$16, %edi
	callq	__PUSH_PSENC
	movl	%eax, %edi
	callq	__mb_surrogate
	testl	%eax, %eax
	je	LBB0_2
## %bb.15:
	movl	%r12d, %edi
	sarl	$8, %edi
	callq	__PUSH_PSENC
	movl	%eax, %edi
	callq	__mb_leadbyte
	testl	%eax, %eax
	je	LBB0_2
## %bb.16:
	movl	%r12d, %edi
	callq	__PUSH_PSENC
	movl	%eax, %edi
	callq	__mb_surrogate
	jmp	LBB0_17
LBB0_10:
	movl	%r12d, %edi
	sarl	$8, %edi
	callq	__PUSH_PSENC
	movl	%eax, %edi
	callq	__mb_leadbyte
	movq	_EILSEQ@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_2
## %bb.11:
	movl	%r12d, %edi
	callq	__PUSH_PSENC
	movl	%eax, %edi
	callq	__mb_trailbyte
LBB0_17:
	testl	%eax, %eax
	je	LBB0_2
LBB0_18:
	movl	8(%r13), %esi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_memcpy
	movq	$0, (%r14)
	movq	$0, (%r13)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.no_dead_strip	__citrus_GBK2K_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_GBK2K_wcrtomb_priv
__citrus_GBK2K_wcrtomb_priv:            ; @_citrus_GBK2K_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
	mov	x19, x5
	ldr	x8, [x4]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	mov	x20, x4
	mov	x22, x3
	mov	x24, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x3
	bl	__mb_count
	cmp	x0, x24
	b.ls	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _E2BIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
	cmp	x0, #4
	b.eq	LBB0_8
; %bb.5:
	cmp	x0, #2
	b.eq	LBB0_13
; %bb.6:
	cmp	x0, #1
	b.ne	LBB0_15
; %bb.7:
	mov	x0, x22
	bl	__PUSH_PSENC
	bl	__mb_singlebyte
	cbnz	w0, LBB0_15
	b	LBB0_16
LBB0_8:
	ldr	w8, [x23]
	cmp	w8, #4
	b.ne	LBB0_16
; %bb.9:
	asr	w0, w22, #24
	bl	__PUSH_PSENC
	bl	__mb_leadbyte
	cbz	w0, LBB0_16
; %bb.10:
	asr	w0, w22, #16
	bl	__PUSH_PSENC
	bl	__mb_surrogate
	cbz	w0, LBB0_16
; %bb.11:
	asr	w0, w22, #8
	bl	__PUSH_PSENC
	bl	__mb_leadbyte
	cbz	w0, LBB0_16
; %bb.12:
	mov	x0, x22
	bl	__PUSH_PSENC
	bl	__mb_surrogate
	cbnz	w0, LBB0_15
	b	LBB0_16
LBB0_13:
	asr	w0, w22, #8
	bl	__PUSH_PSENC
	bl	__mb_leadbyte
	cbz	w0, LBB0_16
; %bb.14:
	mov	x0, x22
	bl	__PUSH_PSENC
	bl	__mb_trailbyte
	cbz	w0, LBB0_16
LBB0_15:
	ldr	w1, [x20, #8]
	mov	x0, x21
	mov	x2, #0
	bl	_memcpy
	mov	w0, #0
	str	xzr, [x19]
	str	xzr, [x20]
	b	LBB0_18
LBB0_16:
Lloh4:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	mov	x8, #-1
	str	x8, [x19]
LBB0_18:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.no_dead_strip	__citrus_GBK2K_wcrtomb_priv
.subsections_via_symbols
