	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_MSKanji_stdenc_wctocs
__citrus_MSKanji_stdenc_wctocs:         ## @_citrus_MSKanji_stdenc_wctocs
	.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	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	cmpl	$127, %ebx
	jg	LBB0_3
## %bb.1:
	movl	$0, (%r12)
	movl	%ebx, (%r15)
	jmp	LBB0_14
LBB0_3:
	cmpl	$255, %ebx
	ja	LBB0_5
## %bb.4:
	movl	$1, (%r12)
	andl	$127, %ebx
	movl	%ebx, (%r15)
	jmp	LBB0_14
LBB0_5:
	movq	%rdi, %r13
	movzbl	%bh, %edi
	movl	%edi, %r14d
	callq	__mskanji1
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movzbl	%bl, %edi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	callq	__mskanji2
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	cmpl	$240, %r14d
	jb	LBB0_10
## %bb.9:
	movq	_MODE_JIS2004@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	je	LBB0_10
## %bb.11:
	movl	$3, (%r12)
	movl	$-206, %eax
	cmpl	$62622, %ebx                    ## imm = 0xF49E
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	ja	LBB0_13
## %bb.12:
	cmpl	$62111, %ebx                    ## imm = 0xF29F
	setae	%al
	addl	$-61599, %ebx                   ## imm = 0xFFFF0F61
	cmpl	$94, %ebx
	setb	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	leal	(%rax,%rax,2), %eax
	orl	$-240, %eax
	jmp	LBB0_13
LBB0_7:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_10:
	movl	$2, (%r12)
	movl	$-129, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_13:
	addl	%r14d, %eax
	leal	(%rax,%rax), %ecx
	cmpl	$95, %eax
	leal	16777088(%rax,%rax), %eax
	cmovll	%ecx, %eax
	xorl	%ecx, %ecx
	cmpl	$127, %edi
	seta	%cl
	movl	%edi, %edx
	subl	%ecx, %edx
	addl	$-31, %edx
	negl	%ecx
	xorl	%esi, %esi
	cmpl	$127, %edx
	setge	%sil
	leal	-125(%rdi,%rcx), %ecx
	cmovll	%edx, %ecx
	orl	%eax, %esi
	shll	$8, %esi
	addl	$8448, %esi                     ## imm = 0x2100
	orl	%ecx, %esi
	movl	%esi, (%r15)
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_MODE_JIS2004,4,2               ## @MODE_JIS2004
	.no_dead_strip	__citrus_MSKanji_stdenc_wctocs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _citrus_MSKanji_stdenc_wctocs
__citrus_MSKanji_stdenc_wctocs:         ; @_citrus_MSKanji_stdenc_wctocs
	.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	x20, x3
	mov	x19, x2
	mov	x23, x1
	cmp	w20, #127
	b.gt	LBB0_2
; %bb.1:
	mov	w0, #0
	str	wzr, [x23]
	str	w20, [x19]
	b	LBB0_13
LBB0_2:
	cmp	w20, #255
	b.hi	LBB0_4
; %bb.3:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x23]
	and	w8, w20, #0x7f
	b	LBB0_12
LBB0_4:
	mov	x24, x0
	ubfx	w21, w20, #8, #8
	mov	x0, x21
	bl	__mskanji1
	cbz	w0, LBB0_9
; %bb.5:
	and	w22, w20, #0xff
	mov	x0, x22
	bl	__mskanji2
	cbz	w0, LBB0_9
; %bb.6:
	cmp	w21, #240
	b.lo	LBB0_10
; %bb.7:
	ldr	w8, [x24]
Lloh0:
	adrp	x9, _MODE_JIS2004@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MODE_JIS2004@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w8, LBB0_10
; %bb.8:
	mov	w8, #3
	str	w8, [x23]
	mov	w8, #-206
	mov	w9, #62622
	mov	w10, #-61599
	add	w10, w20, w10
	cmp	w10, #94
	mov	w10, #62110
	ccmp	w20, w10, #2, hs
	mov	w10, #-240
	mov	w11, #-237
	csel	w10, w11, w10, hi
	cmp	w20, w9
	csel	w8, w8, w10, hi
	b	LBB0_11
LBB0_9:
Lloh3:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_10:
	mov	w8, #2
	str	w8, [x23]
	mov	w8, #-129
LBB0_11:
	mov	w0, #0
	add	w8, w8, w21
	lsl	w9, w8, #1
	mov	w10, #16777088
	add	w10, w9, w10
	cmp	w8, #94
	csel	w8, w10, w9, gt
	cmp	w22, #127
	mov	w9, #-32
	cinc	w9, w9, ls
	add	w9, w9, w22
	sub	w10, w9, #94
	cmp	w9, #126
	csel	w9, w10, w9, gt
	mov	w10, #33
	cinc	w10, w10, gt
	add	w8, w8, w10
	orr	w8, w9, w8, lsl #8
LBB0_12:
	str	w8, [x19]
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_MODE_JIS2004,4,2               ; @MODE_JIS2004
	.no_dead_strip	__citrus_MSKanji_stdenc_wctocs
.subsections_via_symbols
