	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_conv_uni_to_pc                 ## -- Begin function conv_uni_to_pc
	.p2align	4, 0x90
_conv_uni_to_pc:                        ## @conv_uni_to_pc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-4, %eax
	cmpq	$65535, %rsi                    ## imm = 0xFFFF
	jg	LBB0_3
## %bb.1:
	movl	$-1, %eax
	cmpq	$32, %rsi
	jl	LBB0_3
## %bb.2:
	movl	$-2, %eax
	leaq	-8203(%rsi), %rcx
	cmpq	$5, %rcx
	jae	LBB0_4
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	cmpq	$65279, %rsi                    ## imm = 0xFEFF
	je	LBB0_3
## %bb.5:
	movq	_UNI_DIRECT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rcx
	notq	%rcx
	andq	%rsi, %rcx
	movq	_UNI_DIRECT_BASE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	andl	%esi, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	(%rax), %rax
	movq	%rsi, %rcx
	shrq	$11, %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	%esi, %ecx
	shrl	$3, %ecx
	andl	$248, %ecx
	movq	(%rax,%rcx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	andl	$63, %esi
	movl	(%rax,%rsi,4), %eax
	movq	_MAX_GLYPH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_3
LBB0_11:
	movl	$-4, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_12:
	movl	$-3, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNI_DIRECT_MASK,8,3            ## @UNI_DIRECT_MASK
	.comm	_UNI_DIRECT_BASE,8,3            ## @UNI_DIRECT_BASE
	.comm	_MAX_GLYPH,4,2                  ## @MAX_GLYPH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_conv_uni_to_pc                 ; -- Begin function conv_uni_to_pc
	.p2align	2
_conv_uni_to_pc:                        ; @conv_uni_to_pc
	.cfi_startproc
; %bb.0:
	cmp	x1, #16, lsl #12                ; =65536
	b.lt	LBB0_2
LBB0_1:
	mov	w0, #-4
	b	LBB0_5
LBB0_2:
	cmp	x1, #32
	b.ge	LBB0_4
; %bb.3:
	mov	w0, #-1
	ret
LBB0_4:
	mov	x8, x0
	mov	w0, #-2
	mov	x9, #-8203
	add	x9, x1, x9
	cmp	x9, #5
	b.hs	LBB0_6
LBB0_5:
	ret
LBB0_6:
	mov	w9, #65279
	cmp	x1, x9
	b.eq	LBB0_5
; %bb.7:
Lloh0:
	adrp	x9, _UNI_DIRECT_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UNI_DIRECT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	bic	x10, x1, x9
Lloh3:
	adrp	x11, _UNI_DIRECT_BASE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _UNI_DIRECT_BASE@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.8:
	and	w0, w9, w1
	ret
LBB0_9:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	x8, [x8]
	lsr	x9, x1, #8
	and	x9, x9, #0xfffffffffffff8
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_1
; %bb.11:
	ubfx	x9, x1, #6, #5
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_1
; %bb.12:
	and	x9, x1, #0x3f
	ldr	w0, [x8, x9, lsl #2]
Lloh6:
	adrp	x8, _MAX_GLYPH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_GLYPH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_1
	b	LBB0_5
LBB0_13:
	mov	w0, #-3
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UNI_DIRECT_MASK,8,3            ; @UNI_DIRECT_MASK
	.comm	_UNI_DIRECT_BASE,8,3            ; @UNI_DIRECT_BASE
	.comm	_MAX_GLYPH,4,2                  ; @MAX_GLYPH
.subsections_via_symbols
