	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_unicodemap             ## -- Begin function process_unicodemap
	.p2align	4, 0x90
_process_unicodemap:                    ## @process_unicodemap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_QK_UNICODEMAP@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jg	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	movq	_QK_UNICODEMAP_PAIR_MAX@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jl	LBB0_11
## %bb.2:
	cmpq	$0, (%rsi)
	je	LBB0_11
## %bb.3:
	xorl	%eax, %eax
	callq	_unicode_input_start
	movq	_unicode_map@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_unicodemap_index
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_pgm_read_dword
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_get_unicode_input_mode
	cmpl	$1114111, %ebx                  ## imm = 0x10FFFF
	jg	LBB0_6
## %bb.4:
	cmpl	$65536, %ebx                    ## imm = 0x10000
	jl	LBB0_7
## %bb.5:
	movq	_UC_WIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_unicode_input_cancel
	jmp	LBB0_11
LBB0_7:
	cmpl	$65536, %ebx                    ## imm = 0x10000
	jl	LBB0_10
## %bb.8:
	movq	_UC_OSX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	leal	983040(%rbx), %edi
	andl	$1023, %ebx                     ## imm = 0x3FF
	shrl	$10, %edi
	andl	$1023, %edi                     ## imm = 0x3FF
	orl	$55296, %edi                    ## imm = 0xD800
	callq	_register_hex32
	orl	$56320, %ebx                    ## imm = 0xDC00
LBB0_10:
	movl	%ebx, %edi
	callq	_register_hex32
	xorl	%eax, %eax
	callq	_unicode_input_finish
LBB0_11:
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QK_UNICODEMAP,8,3              ## @QK_UNICODEMAP
	.comm	_QK_UNICODEMAP_PAIR_MAX,8,3     ## @QK_UNICODEMAP_PAIR_MAX
	.comm	_unicode_map,8,3                ## @unicode_map
	.comm	_UC_WIN,8,3                     ## @UC_WIN
	.comm	_UC_OSX,8,3                     ## @UC_OSX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_unicodemap             ; -- Begin function process_unicodemap
	.p2align	2
_process_unicodemap:                    ; @process_unicodemap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _QK_UNICODEMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QK_UNICODEMAP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _QK_UNICODEMAP_PAIR_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QK_UNICODEMAP_PAIR_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #8, le
	b.lt	LBB0_9
; %bb.1:
	ldr	x8, [x1]
	cbz	x8, LBB0_9
; %bb.2:
	mov	x19, x0
	bl	_unicode_input_start
Lloh6:
	adrp	x8, _unicode_map@GOTPAGE
Lloh7:
	ldr	x8, [x8, _unicode_map@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
	mov	x0, x19
	bl	_unicodemap_index
	add	x0, x0, x20
	bl	_pgm_read_dword
	mov	x19, x0
	bl	_get_unicode_input_mode
	cmp	w19, #272, lsl #12              ; =1114112
	b.ge	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _UC_WIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UC_WIN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	w19, #16, lsl #12               ; =65536
	ccmp	x0, x8, #0, ge
	b.eq	LBB0_6
; %bb.4:
Lloh12:
	adrp	x8, _UC_OSX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UC_OSX@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	w19, #16, lsl #12               ; =65536
	ccmp	x0, x8, #0, ge
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x19
	b	LBB0_8
LBB0_6:
	bl	_unicode_input_cancel
	b	LBB0_9
LBB0_7:
	add	w8, w19, #240, lsl #12          ; =983040
	mov	w0, #55296
	bfxil	w0, w8, #10, #10
	bl	_register_hex32
	mov	w0, #56320
	bfxil	w0, w19, #0, #10
LBB0_8:
	bl	_register_hex32
	bl	_unicode_input_finish
LBB0_9:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QK_UNICODEMAP,8,3              ; @QK_UNICODEMAP
	.comm	_QK_UNICODEMAP_PAIR_MAX,8,3     ; @QK_UNICODEMAP_PAIR_MAX
	.comm	_unicode_map,8,3                ; @unicode_map
	.comm	_UC_WIN,8,3                     ; @UC_WIN
	.comm	_UC_OSX,8,3                     ; @UC_OSX
.subsections_via_symbols
