	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_MSKanji_stdenc_cstowc
__citrus_MSKanji_stdenc_cstowc:         ## @_citrus_MSKanji_stdenc_cstowc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $ecx killed $ecx def $rcx
	cmpl	$3, %edx
	ja	LBB0_16
## %bb.1:
	movl	%edx, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_2:
	cmpl	$128, %ecx
	jl	LBB0_5
	jmp	LBB0_16
LBB0_3:
	cmpl	$128, %ecx
	jge	LBB0_16
## %bb.4:
	subl	$-128, %ecx
LBB0_5:
	movl	%ecx, (%rsi)
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	cmpl	$8447, %ecx                     ## imm = 0x20FF
	jle	LBB0_16
## %bb.8:
	cmpl	$38912, %ecx                    ## imm = 0x9800
	jae	LBB0_16
## %bb.9:
	movl	%ecx, %r8d
	sarl	$8, %r8d
	xorl	%edx, %edx
	cmpl	$24320, %ecx                    ## imm = 0x5F00
	setae	%dl
	shll	$6, %edx
	orl	$129, %edx
	jmp	LBB0_15
LBB0_10:
	movq	_MODE_JIS2004@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_16
## %bb.11:
	cmpl	$8448, %ecx                     ## imm = 0x2100
	jl	LBB0_16
## %bb.12:
	movl	%ecx, %r8d
	sarl	$8, %r8d
	cmpl	$12287, %ecx                    ## imm = 0x2FFF
	ja	LBB0_14
## %bb.13:
	xorl	%edx, %edx
	cmpl	$34, %r8d
	setne	%dl
	cmpl	$9728, %ecx                     ## imm = 0x2600
	leal	237(%rdx,%rdx,2), %edi
	movl	$237, %edx
	cmovbl	%edi, %edx
	jmp	LBB0_15
LBB0_14:
	leal	-19712(%rcx), %edi
	movl	$206, %edx
	cmpl	$12800, %edi                    ## imm = 0x3200
	jae	LBB0_16
LBB0_15:
	movzbl	%cl, %ecx
	leal	-127(%rcx), %edi
	cmpl	$-95, %edi
	ja	LBB0_17
LBB0_16:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_17:
	leal	-33(%r8), %r9d
	cmpl	$96, %ecx
	movl	$31, %eax
	sbbl	$-1, %eax
	testb	$1, %r9b
	movl	$126, %edi
	cmovel	%eax, %edi
	addl	%ecx, %edi
	shrl	$31, %r9d
	leal	(%r8,%r9), %eax
	addl	$-33, %eax
	shrl	%eax
	addl	%edx, %eax
	shll	$8, %eax
	orl	%edi, %eax
	movl	%eax, (%rsi)
	jmp	LBB0_6
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_MODE_JIS2004,4,2               ## @MODE_JIS2004
	.no_dead_strip	__citrus_MSKanji_stdenc_cstowc
.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_cstowc
__citrus_MSKanji_stdenc_cstowc:         ; @_citrus_MSKanji_stdenc_cstowc
	.cfi_startproc
; %bb.0:
	cmp	w2, #3
	b.hi	LBB0_16
; %bb.1:
	mov	w8, w2
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cmp	w3, #128
	b.ge	LBB0_16
; %bb.3:
	mov	w0, #0
	str	w3, [x1]
	ret
LBB0_4:
	cmp	w3, #128
	b.ge	LBB0_16
; %bb.5:
	mov	w0, #0
	add	w8, w3, #128
	str	w8, [x1]
	ret
LBB0_6:
	mov	w8, #8447
	cmp	w3, w8
	b.le	LBB0_16
; %bb.7:
	lsr	w8, w3, #11
	cmp	w8, #19
	b.hs	LBB0_16
; %bb.8:
	asr	w8, w3, #8
	lsr	w9, w3, #8
	mov	w10, #193
	mov	w11, #129
	cmp	w9, #95
	csel	w9, w11, w10, lo
	b	LBB0_15
LBB0_9:
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _MODE_JIS2004@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MODE_JIS2004@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.10:
	mov	w8, #8448
	cmp	w3, w8
	b.lt	LBB0_16
; %bb.11:
	asr	w8, w3, #8
	lsr	w9, w3, #12
	cmp	w9, #2
	b.hi	LBB0_13
; %bb.12:
	cmp	w8, #34
	lsr	w9, w3, #9
	ccmp	w9, #18, #2, ne
	mov	w9, #240
	mov	w10, #237
	csel	w9, w10, w9, hi
	b	LBB0_15
LBB0_13:
	mov	w9, #-19712
	add	w9, w3, w9
	lsr	w9, w9, #9
	cmp	w9, #25
	b.hs	LBB0_16
; %bb.14:
	mov	w9, #206
LBB0_15:
	and	w10, w3, #0xff
	sub	w11, w10, #127
	cmn	w11, #95
	b.hi	LBB0_17
LBB0_16:
Lloh5:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ret
LBB0_17:
	mov	w0, #0
	sub	w11, w8, #33
	cmp	w10, #95
	mov	w12, #31
	cinc	w12, w12, hi
	tst	w11, #0x1
	mov	w13, #126
	csel	w12, w12, w13, eq
	add	w10, w10, w12
	sub	w8, w8, #32
	cmp	w11, #0
	csel	w8, w8, w11, lt
	add	w8, w9, w8, lsr #1
	orr	w8, w10, w8, lsl #8
	str	w8, [x1]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_MODE_JIS2004,4,2               ; @MODE_JIS2004
	.no_dead_strip	__citrus_MSKanji_stdenc_cstowc
.subsections_via_symbols
