	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utf8_to_win_char               ## -- Begin function utf8_to_win_char
	.p2align	4, 0x90
_utf8_to_win_char:                      ## @utf8_to_win_char
	.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 $edi killed $edi def $rdi
	cmpl	$128, %edi
	jge	LBB0_2
## %bb.1:
	movl	%edi, %eax
	popq	%rbp
	retq
LBB0_2:
	leal	-8235(%rdi), %ecx
	cmpl	$3, %ecx
	ja	LBB0_4
## %bb.3:
	movl	$218, %eax
	cmpl	$2, %ecx
	je	LBB0_4
LBB0_16:
	popq	%rbp
	retq
LBB0_4:
	movl	%edi, %ecx
	andl	$-256, %ecx
	movl	$-1, %eax
	cmpl	$8191, %ecx                     ## imm = 0x1FFF
	jle	LBB0_5
## %bb.8:
	cmpl	$65280, %ecx                    ## imm = 0xFF00
	je	LBB0_12
## %bb.9:
	cmpl	$8448, %ecx                     ## imm = 0x2100
	je	LBB0_13
## %bb.10:
	cmpl	$8192, %ecx                     ## imm = 0x2000
	jne	LBB0_16
## %bb.11:
	movq	_utf8_to_win_convert_0x2000@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_5:
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.6:
	cmpl	$1024, %ecx                     ## imm = 0x400
	jne	LBB0_16
## %bb.7:
	movq	_utf8_to_win_convert_0x400@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_utf8_to_win_convert_0xff00@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_utf8_to_win_convert_0x2100@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_utf8_to_win_convert_0x000@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	movzbl	%dil, %ecx
	movl	(%rax,%rcx,4), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_utf8_to_win_convert_0x400,8,3  ## @utf8_to_win_convert_0x400
	.comm	_utf8_to_win_convert_0x2000,8,3 ## @utf8_to_win_convert_0x2000
	.comm	_utf8_to_win_convert_0xff00,8,3 ## @utf8_to_win_convert_0xff00
	.comm	_utf8_to_win_convert_0x2100,8,3 ## @utf8_to_win_convert_0x2100
	.comm	_utf8_to_win_convert_0x000,8,3  ## @utf8_to_win_convert_0x000
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utf8_to_win_char               ; -- Begin function utf8_to_win_char
	.p2align	2
_utf8_to_win_char:                      ; @utf8_to_win_char
	.cfi_startproc
; %bb.0:
	cmp	w0, #128
	b.ge	LBB0_2
; %bb.1:
	ret
LBB0_2:
	mov	w8, #-8235
	add	w8, w0, w8
	cmp	w8, #3
	ccmp	w8, #2, #4, ls
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #218
	ret
LBB0_4:
	and	w9, w0, #0xffffff00
	mov	w8, #-1
	cmp	w9, #2, lsl #12                 ; =8192
	b.lt	LBB0_9
; %bb.5:
	mov	w10, #65280
	cmp	w9, w10
	b.eq	LBB0_12
; %bb.6:
	mov	w10, #8448
	cmp	w9, w10
	b.eq	LBB0_13
; %bb.7:
	cmp	w9, #2, lsl #12                 ; =8192
	b.ne	LBB0_16
; %bb.8:
Lloh0:
	adrp	x8, _utf8_to_win_convert_0x2000@GOTPAGE
Lloh1:
	ldr	x8, [x8, _utf8_to_win_convert_0x2000@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
	cbz	w9, LBB0_14
; %bb.10:
	cmp	w9, #1024
	b.ne	LBB0_16
; %bb.11:
Lloh2:
	adrp	x8, _utf8_to_win_convert_0x400@GOTPAGE
Lloh3:
	ldr	x8, [x8, _utf8_to_win_convert_0x400@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh4:
	adrp	x8, _utf8_to_win_convert_0xff00@GOTPAGE
Lloh5:
	ldr	x8, [x8, _utf8_to_win_convert_0xff00@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh6:
	adrp	x8, _utf8_to_win_convert_0x2100@GOTPAGE
Lloh7:
	ldr	x8, [x8, _utf8_to_win_convert_0x2100@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh8:
	adrp	x8, _utf8_to_win_convert_0x000@GOTPAGE
Lloh9:
	ldr	x8, [x8, _utf8_to_win_convert_0x000@GOTPAGEOFF]
LBB0_15:
	ldr	x8, [x8]
	and	w9, w0, #0xff
	ldr	w8, [x8, w9, uxtw #2]
LBB0_16:
	mov	x0, x8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_utf8_to_win_convert_0x400,8,3  ; @utf8_to_win_convert_0x400
	.comm	_utf8_to_win_convert_0x2000,8,3 ; @utf8_to_win_convert_0x2000
	.comm	_utf8_to_win_convert_0xff00,8,3 ; @utf8_to_win_convert_0xff00
	.comm	_utf8_to_win_convert_0x2100,8,3 ; @utf8_to_win_convert_0x2100
	.comm	_utf8_to_win_convert_0x000,8,3  ; @utf8_to_win_convert_0x000
.subsections_via_symbols
